作者ivy4 (呆呆)
看板Web_Design
标题[问题] Dreamweaver的SQL语法问题
时间Thu Jan 9 02:35:35 2014
由於期末报告要制作网页
但小妹其实才接触这套软体没多久
於是就产生了看了老半天还是看不出问题的症结点所在 囧
麻烦帮我看一下我是哪里打错了 感恩 QQ
筛选的档案为access中的water
筛选的条件为:目的地(port),保险种类(ins_type),
船型、船龄(s_year),货品(things)
我打的语法是 :
sql="select * from water where port=" & port & "
and ins_type=" & ins_type & "and s_year=" & s_year & "
and things=" & things & ""
网页出现:
范例的SQL查询语法:select * from water where port=and
ins_type=and s_year=and things=
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'
[Microsoft][ODBC Microsoft Access Driver] 查询运算式
'port=and ins_type=and s_year=and things=' 中的 语法错误 (少了运算元)。
/ins/ifm/2301b011/water.asp, 列11
以上
当然有一些地方其实我是没有换行的
只是为了版面好看而已 XD
麻烦各位了 >_<
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 36.235.90.137
1F:推 pm2001:port=and 你根本没丢变数进去阿 01/09 08:24
2F:→ ivy4:变数是要加入这个吗 01/09 16:59
3F:→ ivy4:port=request("port")ins_type=request("ins_type") 这些? 01/09 17:00
4F:推 f1234518456:你应该去找本asp的书来看... 01/09 20:57
5F:推 yanli2:我视讯教你吧XD 01/10 04:42
6F:→ a926:要不要抓个Visual Studio..应该比你的Dreawaver快 01/10 10:17
7F:→ a926:有想要用这方式再私讯我 01/10 10:17
8F:→ a926:阿,我指的是产出sql语法这块 :) 01/10 10:21
9F:→ ivy4:问题已经解决了 感谢大家的热情 :)) 01/10 18:21