0

Difference between "SELECT" and "SHOW" in SQL

What is the difference between "SELECT phone no. FROM friends" And "SHOW phone no. FROM friends"

17th Sep 2018, 4:59 PM
Laxmi Narayan Dubey
Laxmi Narayan Dubey - avatar
2 ответов
+ 4
SHOW does not work like SELECT, it does not retrieve the data values. If you specify COLUMNS above, you will receive column information, instead -- columns' names, types, keys and properties. As far as I know, you can't specify a particular column name in a SHOW statement. Take a look at possible SHOW uses: https://dev.mysql.com/doc/refman/8.0/en/show.html
17th Sep 2018, 5:14 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Got it 👍
18th Sep 2018, 6:12 AM
Laxmi Narayan Dubey
Laxmi Narayan Dubey - avatar