SELECT statement includes three select list elements : Simple Select « Select Clause « SQL / MySQL






SELECT statement includes three select list elements

       
mysql>
mysql> SELECT 1+3, 'CD Inventory', NOW() AS 'Date/Time';
+-----+--------------+---------------------+
| 1+3 | CD Inventory | Date/Time           |
+-----+--------------+---------------------+
|   4 | CD Inventory | 2011-10-03 20:56:36 |
+-----+--------------+---------------------+
1 row in set (0.00 sec)

mysql>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Explain select command
2.Get the number, name, and date of birth of each player resident in Stratford; sort the result in alphabetical
3.Do math calculation with select
4.Select rows
5.The expression in the select list subtracts the Reserved value from the total
6.Removing duplicates and selecting only the unique combinations of values in the specified columns
7.Display the names of only those authors whose surname starts with one of the letters L through Z:
8.Determines all employees whose names contain the sequence of letters er.
9.Use a wildcard (*) to return all the fields
10.Using mysql as a Calculator
11.Identifying What Values to Display
12.Using the aliases p1 and p2 to refer to the book table different ways