charlesqwu (Charles Wu) 的博客分享 http://blog.sciencenet.cn/u/charlesqwu

博文

IN MYSQL SELECT, WILDCARD MUST GO FIRST

已有 22664 次阅读 2013-2-14 03:27 |个人分类:Web|系统分类:科研笔记

IN MYSQL SELECT, WILDCARD MUST GO FIRST!

mysql> SELECT *, from_unixtime(created) FROM payment_transaction_details;
+----+---------+-----------+------------+------------------------+
| id | ppl_id  | reason_id | created    | from_unixtime(created) |
+----+---------+-----------+------------+------------------------+
|  1 | 9383651 |        31 | 1360781624 | 2013-02-13 10:53:44    |
| 11 | 9383661 |        71 | 1360781645 | 2013-02-13 10:54:05    |
| 21 | 9383671 |        11 | 1360781697 | 2013-02-13 10:54:57    |
| 31 | 9383681 |         1 | 1360781765 | 2013-02-13 10:56:05    |
+----+---------+-----------+------------+------------------------+
4 rows in set (0.00 sec)

mysql> SELECT from_unixtime(created), * FROM payment_transaction_details;
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 '* from payment_transaction_details' at line 1

WHY SO?


https://blog.sciencenet.cn/blog-322380-661668.html

上一篇:视觉科学和计算机视觉的网站和通信录
下一篇:牛顿关于颜色和色觉的​疑问
收藏 IP: 12.218.215.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (1 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-11-23 19:52

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部