Topic: 帮忙看看程序错在哪 里了

  Print this page

1.帮忙看看程序错在哪 里了 Copy to clipboard
Posted by: wuyongjin
Posted on: 2005-01-15 20:16

在jbuilder编译的错误:
java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax near 'image)' at line 1
  at com.mysql.jdbc.MysqlIO.sendCommand(Unknown Source)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(Unknown Source)
  at com.mysql.jdbc.MysqlIO.sqlQuery(Unknown Source)
  at com.mysql.jdbc.Connection.execSQL(Unknown Source)
  at com.mysql.jdbc.Connection.execSQL(Unknown Source)
  at com.mysql.jdbc.Statement.executeUpdate(Unknown Source)
  at com.mysql.jdbc.jdbc2.Statement.executeUpdate(Unknown Source)
  at createpicture.CreateImage1.main(CreateImage1.java:25)
Exception in thread "main"
源文件:

createpicture.rar (52.96k)

2.Re:帮忙看看程序错在哪 里了 [Re: wuyongjin] Copy to clipboard
Posted by: 鸡肋男
Posted on: 2005-01-17 11:35

SQL语法错误!!

3.Re:帮忙看看程序错在哪 里了 [Re: wuyongjin] Copy to clipboard
Posted by: lover
Posted on: 2005-01-19 08:41

String createTable = "CREATE TABLE imageTable1" +
"(NAME VARCHAR(32),"+
"PHOTO image)";
这句话有错.

4.Re:帮忙看看程序错在哪 里了 [Re: wuyongjin] Copy to clipboard
Posted by: 齐彬
Posted on: 2005-01-20 19:51

麻烦斑竹删除我的回复。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923