[英]How to create one checkbox in html to hide/show more than one column in a table using jQuery
[英]object name for checkbox and sql command to populate more than one table
我有一個包含3個表的數據庫,我想在我的Java應用程序中向其中添加數據...
String command1 = "INSERT INTO Drivers (IDNumber, FirstName, LastName) VALUES" + drivID + FName + LName;
我可以使用此命令在所有3個表中輸入數據嗎,還是必須創建3個這樣的命令才能在以下准備好的語句中使用?
PreparedStatement p = conn.getStatement(command1);
所有在我的表中我有復選框和字符串,我做了字符串變量如下
String drivID = txtid.getText();
有人可以告訴我復選框的對象名稱是什么
String command1 = String.format("INSERT INTO %s (IDNumber, FirstName, LastName) VALUES (%s, %s, %s)", tableName, ID, fName, lName);
PreparedStatement p = conn.getStatement(command1);
雖然,對於您的示例,我看不出沒有任何理由不能使用java.sql.Statement而不是PreparedStatement。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.