English 中文(简体)
html5 使用gwt-html5数据库的报表中添加的同义词
原标题:html5 database syntax error in insert where statement using gwt-html5-database
  • 时间:2012-05-07 08:30:13
  •  标签:
  • sql
  • html
  • gwt

How should a correct INSERT WHERE statement look like? I have a normal INSERT statement which looks like this and it works:

tx.executeSql("INSERT INTO Vocables (english, german) VALUES (?, ?)", new Object[]{eng, ger}, new StatementCallback<JavaScriptObject>()

But how should look like an INSERT WHERE statement? I tried this but it doesn t work.

("INSERT INTO Vocables (english, german) VALUES (?, ?) WHERE id=(?)", new Object[]{eng, ger,id});

我收到这一错误信息:

could not prepare statement(1 near "WHERE": syntax error)
问题回答

页: 1 WHERE /code> 指令......

如何看待正确的INSERT WHERE声明?

不含<条码>。

insert into Vocables 
    select column1, column2 from other_table where ...




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签