Skip to content

Instantly share code, notes, and snippets.

@tomoh1r
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoh1r/95e8c32a1751e945bbb3 to your computer and use it in GitHub Desktop.
Save tomoh1r/95e8c32a1751e945bbb3 to your computer and use it in GitHub Desktop.
ヴァ-
[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