03 2019 档案
摘要:#My SQL 取前多少条select * from table LIMIT 5,10; #返回第6-15行数据 select * from table LIMIT 5; #返回前5行 select * from table LIMIT 0,5; #返回前5行
阅读全文
摘要:###My SQL Date相关函数 #获得当前日期时间 select now(); #date_format(date,format) select date_format('2008-08-08 22:23:01', '%Y%m%d%H%i%s'); #str_to_date(str, format) select str_to_date('08/09/2008', '%m/%d/...
阅读全文
摘要:MySQL:众多关系型数据库中的一种 仓库 --数据库 箱子 --表 数据库: 进入mysql 命令行: mysql -uroot -p 查看所有数据库: show databases; 创建数据库: create database niu charset utf8; 删除数据库: drop database niu; 选择数据库: use databases; 查看所有表: show tabl...
阅读全文