打印

[asp] 调用字符串的问题sql="select

页面的网址是:product.asp?seclass=中文

asp页里用了small_part=trim(request("seclass"))

请问sql语句怎么写?
我不太懂程序。这样写的

sql="select * from from pro_small_part where small_part='"&small_part&"'"


调试时出现:Microsoft JET Database Engine 错误 '80040e14' FROM 子句语法错误。

高手们出来啊。这句怎么写啊?
sql="select * from from pro_small_part where small_part like '%"&small_part&"%'"

这样写也不对。到底怎么写啊???
sql="select * from from pro_small_part where small_part like '%"&small_part&"%'"
你用2个from干什么
还没想好;先不签了
呵呵。多谢楼上。写程序写傻了。
我一直没找到原因。。。。。。。居然范这种错误。
还发这么出名的论坛上来求助。。。


真是。。。。。。。。。不好意思。。。我闪人。。。。

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
引用:
原帖由 yxljames 于 2008-6-26 23:40 发表
sql="select * from from pro_small_part where small_part like '%"&small_part&"%'"
你用2个from干什么
晕吧。。。。

TOP