随笔分类 - Mysql
摘要:1.order_by select * from products order_by salary desc;(倒叙) select * from products order_by salary asc; 2.利用正则表达式 select * from products where name re
阅读全文
摘要:1.查询单个字段 select last_name from employees; 2.查询多个字段 select last_name,salary,email from employees; 3.查询所有字段 select * from employees; 4.查询常量值 select 100;
阅读全文
摘要:Mysql中的数据类型: 字符串型:(注意:char和varchar需要指定长度,例如:char(10)) 类型 字节 大小 说明 char 1 0~255 2^8定长字节 varchar 2 0~65535 2^16定长字节 tinytext 1 0~255 短文本,与char存储形式不同 tex
阅读全文

浙公网安备 33010602011771号