+ 1

What is the syntax of SELECT statement for retrieving more than 1 columns? : )

18th Mar 2017, 2:58 PM
Priyadharsan
Priyadharsan - avatar
6 Answers
+ 6
Just list them separated by a comma: SELECT column1, column2, column3 FROM table1
18th Mar 2017, 5:36 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 2
If you want, for example, to select name, surname from the 'student' table, is: SELECT name, surname FROM student
18th Mar 2017, 3:04 PM
FMC Drummer
FMC Drummer - avatar
+ 1
if you want to retrieve more than 1 column, then u need to specify the column name.. or else you can use * to retrieve all the columns of the table eg: select * from tablename
18th Mar 2017, 5:34 PM
Mohammed Adnan
Mohammed Adnan - avatar
+ 1
select the specific column by using select command like dog is name of database & it contain column breed ,weight ,height . so code is select height,breed from dog
19th Mar 2017, 5:57 PM
Arpit Garg
Arpit Garg - avatar
0
select empid,empname from employee empid and empname are columns...
18th Mar 2017, 3:22 PM
Sabareeshwari
Sabareeshwari - avatar
0
if you want to select all the columns SELECT * FROM tablename
21st Mar 2017, 3:26 PM
Uwais Khan
Uwais Khan - avatar