随笔分类 - 数据库SQL
摘要:1 //查询所有品牌为“大众”的车型 2 select * from t_car where version like '大众%' 3 4 //查询座位数不低于5座的车型 5 select version,seat from t_car where seat >= 5 6 7 //查询手动档中排量大
阅读全文
摘要:1 CREATE DATABASE books;#创建数据库 2 3 USE books;#使用数据库 4 5 DROP TABLE IF EXISTS `admin`;#删除存在的admin表 6 7 #创建admin表 8 CREATE TABLE `admin` ( 9 `aid` int(1
阅读全文