![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
文章平均质量分 66
xtpebg
这个作者很懒,什么都没留下…
展开
-
mysql变量
1.设置sql变量 可以使用查询结果来设置变量,我们能够方便的把一些结果保存起来以供他用。变量命名规则是: @name ,赋值语法是 @name : =value , 如: select @bir : =birth from stu where name= ‘ lili ’; select * from stu where bir...原创 2010-10-11 14:29:59 · 67 阅读 · 0 评论 -
mysql sql_mode 在SQLyog UI工具中失效的原因和解决办法
问题详细说明: http://www.webyog.com/forums/index.php?showtopic=2416 解决办法: 用SQLyog 工具连接数据库后, 在Query中,执行如下的SQL。 set sql_mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION...原创 2010-10-23 14:28:05 · 695 阅读 · 0 评论 -
mysql 中时间类型 IMESTAMP 和 DATETIME
通过这次问题解决,了解了 mysql 中的时间字段,网上有篇文章分析的较好,可以参考下,以后使用 mysql 时间字段时注意: 一、IMESTAMP 1 、TIMESTAMP 列必须有默认值,默认值可以为“0000-00-00 00:00:00 ”,但不能为null 。 2 、TIMESTAMP ...原创 2012-05-11 14:59:36 · 247 阅读 · 0 评论