mysql> set @status = "2000:01:31 23:59:59";
-> select round((time_to_sec(time(@status))-time_to_sec(time("2000:01:01 00:
00:00")))/60);//感觉应该是对的为什么总有错,请高手点拨。
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near ';
select round((time_to_sec(time(@status))-time_to_sec(time("2000:01:01 00:00:00'
at line 1
-> select round((time_to_sec(time(@status))-time_to_sec(time("2000:01:01 00:
00:00")))/60);//感觉应该是对的为什么总有错,请高手点拨。
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near ';
select round((time_to_sec(time(@status))-time_to_sec(time("2000:01:01 00:00:00'
at line 1
解决方案 »
- mysql group by limit 查詢
- 关于MYSQL数据库速度问题,请教高手
- MYSQL存储过程如何调试,请教高手
- into outputfile的一个问题
- 谁有mysql的安装软件啊
- Mysql 5 的问题
- Postgresql是否像oracl那样,支持 一个表分成几个区?
- 用ODBC连接MYSQL数据库的时候 有没有办法知道mysql装在哪个盘的??
- 大家救救我啊,这个问题怎么解决啊,一点都不难啊!100分
- show engine innodb status\G 查看最近死锁信息
- mysql所有的数据库后缀为*.MYD大小都为0,怎么回事?
- 请问MFC编程如果通过SSH对虚拟机上的MySql进行访问?
select round((time_to_sec(time(@status))-time_to_sec(time("2000:01:01 00:00:00")))/60) //
'截至2012-06-02 21:13:40 用户结帖率0.00% 当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html8、如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖
Query OK, 0 rows affected (0.03 sec)mysql> select round((time_to_sec(time(@status))-time_to_sec(time("2000:01:01 00: "> 00:00")))/60);
+-------------------------------------------------------------------------------
---+
| round((time_to_sec(time(@status))-time_to_sec(time("2000:01:01 00:
00:00")))/60) |
+-------------------------------------------------------------------------------
---+
| -489
00 |
+-------------------------------------------------------------------------------
---+
1 row in set, 1 warning (0.06 sec)