MySQL的select的简单用法
来源:互联网 发布:云计算技术及应用专业 编辑:程序博客网 时间:2024/06/14 11:04
(1)检索出表tbl中的所有数据。
mysql>select * from tbl;
(2)检索出表tbl中,name等于"nam" 这行的数据。
mysql>select * from tbl where tbl.name = "nam";
(3)在表tbl中, 选择name为“nam”的行,只检索出这行的row和birth两列数据。
mysql>select tbl.row, tbl.birth from tbl where tbl.name = "nam";
参考:
《[MySQL] 用select查询数据表中的记录》
[转]http://www.cnblogs.com/shanhaiyang/archive/2011/08/11/2134558.html
mysql>select * from tbl;
(2)检索出表tbl中,name等于"nam" 这行的数据。
mysql>select * from tbl where tbl.name = "nam";
(3)在表tbl中, 选择name为“nam”的行,只检索出这行的row和birth两列数据。
mysql>select tbl.row, tbl.birth from tbl where tbl.name = "nam";
参考:
《[MySQL] 用select查询数据表中的记录》
[转]http://www.cnblogs.com/shanhaiyang/archive/2011/08/11/2134558.html
- MySQL的select的简单用法
- 10个mysql中select语句的简单用法
- mysql select简单用法
- mysql select简单用法
- jquery multi-select 简单用法的备份
- MySQL SELECT LIKE like的用法
- MySQL中SELECT ... INTO的用法
- MySQL中SELECT ... INTO的用法
- MySQL中SELECT ... INTO的用法
- mysql中select distinct的用法
- MySQL数据查询--select的基本用法
- MySQL之——10个select语句的简单用法
- MySQL Tool的简单用法
- Mysql 索引的简单用法
- 【mysql】mysql中insert into select的用法
- Socket select的用法
- select的用法
- datatable的select用法
- 怎样认识比你优秀的人并和他们成为朋友呢?
- src, href 等 url 类属性的妙用
- VS2010和CUDA4.1的配置
- spring security3 总结
- CC2530 + RFX2401C Zigbee模块
- MySQL的select的简单用法
- lua table函数库
- linux用户空间和内核空间交换数据
- DB2错误信息(按sqlcode排序)
- C# WebService 的动态调用
- linux内核或驱动中goto语句的用处
- SQL Server修改表结构导致表丢失
- IOS项目常用代码
- JS需要知道的