cmsdede:请教查询一个字段的调用方法
来源:百度文库 编辑:中科新闻网 时间:2024/05/09 10:04:04
如题 比方说查询30-100这个数字段,如何调出?
字段名 id
select * form table where id between 30 and 100;
或者
select * from table where id >= 30 and id <=100;
(包含30 和 100的字段)
中科新闻网是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度文库 编辑:中科新闻网 时间:2024/05/09 10:04:04
字段名 id
select * form table where id between 30 and 100;
或者
select * from table where id >= 30 and id <=100;
(包含30 和 100的字段)