Skip to content

Instantly share code, notes, and snippets.

@tomoh1r
Last active Aug 29, 2015
Embed
What would you like to do?
ヴァ-
[spam@ham ~]$ mysql -u egg
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3029885
Server version: 5.5.27-log MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SELECT ROW( '2011-12-08 18:12:00' , NULL ) = ROW( '2011-12-16 00:00:00' , '2011-12-16 00:00:00' ) ;
+--------------------------------------------------------------------------------------------+
| ROW( '2011-12-08 18:12:00' , NULL ) = ROW( '2011-12-16 00:00:00' , '2011-12-16 00:00:00' ) |
+--------------------------------------------------------------------------------------------+
|                                                                                          0 |
+--------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> SELECT ROW( '2011-12-16 00:00:00' , NULL ) = ROW( '2011-12-16 00:00:00' , '2011-12-16 00:00:00' ) ;
+--------------------------------------------------------------------------------------------+
| ROW( '2011-12-16 00:00:00' , NULL ) = ROW( '2011-12-16 00:00:00' , '2011-12-16 00:00:00' ) |
+--------------------------------------------------------------------------------------------+
|                                                                                       NULL |
+--------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> \q
Bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment