摘要: -- sql强化演练( goods 表练习) -- 查询类型 cate_name 为 '超级本' 的商品名称 name 、价格 price ( where ) select name,price from goods where cate_name = "超级本"; -- 显示商品的种类 -- 1 阅读全文
posted @ 2020-07-14 16:17 Bronya天使 阅读(206) 评论(0) 推荐(0)
摘要: -- 查询练习 -- 查询所有字段 -- select * from 表名; select * from students; -- 查询指定字段 -- select 列1,列2,... from 表名; select name,gender from students; -- 使用 as 给字段起别 阅读全文
posted @ 2020-07-14 16:08 Bronya天使 阅读(147) 评论(0) 推荐(0)
摘要: --sql语句的注意 : 1 以 ; 作为结束符 2 不区分大小写 --01 mysql 数据库的操作 -- 链接数据库 mysql -uroot -pmysql -- 不显示密码 mysql -uroot -p mysql -- 退出数据库 exit/quti/ctrl + d -- sql语句最 阅读全文
posted @ 2020-07-14 16:05 Bronya天使 阅读(170) 评论(0) 推荐(0)