![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
文章平均质量分 67
TechLess
这个作者很懒,什么都没留下…
展开
-
MySQL--日期相关函数
MySql-日期相关函数获得当前日期+时间 now()select now();获得当前日期+时间 sysdate()now() 在执行开始时值就得到了, sysdate() 在函数执行时动态得到值。select sysdate();获得当前时间戳函数 current_timestamp()select current_timestamp;select current_time...原创 2019-06-30 09:25:29 · 194 阅读 · 0 评论 -
MySQL--增删改查
创建数据库create databases 库名 character set 编码删除数据库drop database 库名创建表create table 表名( 字段1 数据类型, 字段2 数据类型, ...)向表中添加数据(方法1)insert into 表名(字段1,字段2) values(值1,值2)向表中添加数据(方法2,适合全数据)insert int...原创 2019-07-28 23:50:28 · 405 阅读 · 0 评论