Show warnings : Show « Command MySQL « SQL / MySQL






Show warnings

        
mysql>
mysql> SELECT '2004-13-12' + INTERVAL 1 DAY;
+-------------------------------+
| '2004-13-12' + INTERVAL 1 DAY |
+-------------------------------+
| NULL                          |
+-------------------------------+
1 row in set, 1 warning (0.00 sec)

mysql>
mysql> SHOW WARNINGS;
+---------+------+----------------------------------------+
| Level   | Code | Message                                |
+---------+------+----------------------------------------+
| Warning | 1292 | Incorrect datetime value: '2004-13-12' |
+---------+------+----------------------------------------+
1 row in set (0.00 sec)

mysql>

   
    
    
    
    
    
    
    
  








Related examples in the same category

1.Determine which functions the running version of MySQL supports with the SQL command SHOW VARIABLES.
2.Determine the computer's time zone with SHOW_VARIABLES
3.The SHOW INDEX statement
4.SHOW CREATE TABLE
5.SHOW TABLES with LIKE clause
6.Ask the server to report the number of connections it's received and its uptime
7.Using SHOW and DESCRIBE to Review Table Structures
8.Returns information about all indexes of the table
9.Show columns command
10.Using the SHOW CREATE TABLE statement
11.Using the SHOW VARIABLES Statement to Retrieve Server System Variable Settings
12.Returning now to the syntax, you can see that a basic SHOW STATUS statement is very straightforward
13.SHOW STATUS statement returns all those status variables whose name contains the string select:
14.Have the root user show the change.
15.Using Show Create Table command to check table
16.SHOW COLUMNS
17.To find out the current type of a table, use the SHOW TABLE STATUS statement or SHOW CREATE TABLE
18.SHOW CREATE TABLE tableName\G
19.Using Database-Related SHOW Statements
20.SHOW DATABASE statement
21.Using Table-Related SHOW Statements
22.This SHOW statement returns more than these columns
23.Add a LIKE clause at the end of a SHOW statement to display information only for column names that match a given pattern
24.To determine the tables a particular database contains, use SHOW TABLES:
25.SHOW DATABASES and SHOW TABLES can each take a LIKE 'pattern' clause
26.Using the SUM function, make a report that shows the total sales numbers in each quarter.
27.Show status for a procedure
28.Show create procedure
29.Specify a value in the LIKE clause that includes the string query
30.Listing Existing Tables in a Database with SHOW TABLES
31.Returns a list of all databases
32.Testing Whether a Database Exists
33.Listing Database or Table Names
34.The _ character means "match any character" in pattern strings
35.Determining Existing SPs
36.Monitoring the MySQL Server
37.get the thread identity
38.Returns a list of all tables in dbname
39.Testing Whether a Table Exists
40.Getting Table Structure Information