初学 sql语句 一条不太理解 - 扩充话题 / 灌水乐园
select * from channel_tab where properity=%d order by prior",channelpro
这句什么意思啊
特别是"properity=%d 什么意思
汗 c?
我和你一样菜,没看明白。。
SQL code:
select * from channel_tab where properity=%d order by prior",channelpro
菩提本无树
明镜亦非台
本来无一物
何处惹尘埃
放到SQL里格式都不对啊
不明白
好吧,我承认我不懂...
没看懂,
查询 channel_tab 表中 所有properity = channelpro 并且根据prior(优先级吧)排序
%d整型占位符
不是吧?通配符都不知道?
看不懂 通配符也没有用 = 的啊 是 like
ls说到我心里去了
select * from channel_tab where properity like'%d'order by prior,channelpro
如果是楼上说的 这样 就没问题了
太强大了,还是半个引号
刚刚好想错了,楼主这里绝对是别的语言嵌入的sql语句,拿VC举个例子
C/C++ code:
CString strSqlCommand
相关问答:
tab1 字段:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 字段:goodsid,goodskind(商品类型)
tab3 字段:goodskind(商品类型),kindname
结果:
得到商品类型在一段时间 ......
1。怎样使xp_cmdshell能完整输出超过255个字符的字符串。
2。select 时,检索速度是与from后的 TABLE顺序有关,还是与where条件的顺序有关(TABLE数据多少 )
在系统属性设定里有个选项,可以修改单字段输出字数限制. ......
通过NAME字段条件查询一个数据表,假设我有100个姓名,有以下两个方法,
方法1:
把100个Name 组成一个SQL语句,比如 Select * from tmp_table where Name='张三' or Name ='李四' Or ...Or Name='第一百个姓名'
......