Use a wildcard (*) to return all the fields : Simple Select « Select Clause « SQL / MySQL






Use a wildcard (*) to return all the fields

       
mysql>
mysql> CREATE TABLE sales_rep(
    ->   employee_number INT,
    ->   surname VARCHAR(40),
    ->   first_name VARCHAR(30),
    ->   commission TINYINT
    -> );
Query OK, 0 rows affected (0.01 sec)

mysql>
mysql>
mysql>
mysql> SELECT * FROM sales_rep WHERE surname='Gordimer';
Empty set (0.00 sec)

mysql>
mysql>
mysql> drop table sales_rep;
Query OK, 0 rows affected (0.00 sec)

   
    
    
    
    
    
    
  








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 statement includes three select list elements
5.Select rows
6.The expression in the select list subtracts the Reserved value from the total
7.Removing duplicates and selecting only the unique combinations of values in the specified columns
8.Display the names of only those authors whose surname starts with one of the letters L through Z:
9.Determines all employees whose names contain the sequence of letters er.
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