insert-into
INSERT INTO SELECT not working
I need help inserting a few selected columns from table1 into another table2 (with a WHERE clause). The columns that I want to insert are the same in both tables. But, each table has other columns tha[详细]
2023-04-04 02:07 分类:问答INSERT INTO query only if record doesn't already exist
In my table I have two fields: v_id and ip_address. I want to insert some data into this table only if the IP address doesn\'t already exist.[详细]
2023-04-01 21:56 分类:问答Inserting database row with values from another table
Basically, I have two tables: images and servers. When I want to insert a row into the images table, I need to specify a s_id as one of the fields. Problem is, I only have name, which is another field[详细]
2023-03-27 18:55 分类:问答Access Auto-Increment Value During INSERT INTO Statement
I am currently using MySQL. I have a table that has an auto_increment \'id\' field, and an \'imgname\' field containing a string that is the file name of an image.[详细]
2023-03-25 06:24 分类:问答JSP-Access jdbc error: insert into statement- "Number of query values and destination fields are not the same"
My previous JSP files that read from the database \'Prison\' had worked well. But my \'add.jsp\' file that is supposed to insert values into the database shows this exception:[详细]
2023-03-10 14:19 分类:问答Mysql super strange syntax error?
INSERT INTO pmessage (content, time, sent_by, to) VALUES (\'k\', \'0000-00-00 00:00:00\', 84, 1); You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version[详细]
2023-03-01 22:44 分类:问答Creating a new record containing values based on queries of other tables in MS-Access
I want to create a new record in the mailers table, where three fields would contain values: contacts_first_filter_id, mailer_states_id, created_at. And two of those values are based off queries from[详细]
2023-02-08 06:43 分类:问答Unable to insert row to a table using OleDBAdapter
OleDbConnection _connection = new OleDbConnection(); StringBuilder ConnectionString = new StringBuilder(\"\");[详细]
2023-01-30 12:05 分类:问答How do I INSERT info from one table into its LINK table?
I\'m trying to build an asp.net application, where I have three tables. tblRoute tblHalte tblHalteRoute I want to开发者_开发问答 insert a routeID into tblHalteRoute and for every routeID multiple h[详细]
2023-01-30 09:44 分类:问答SQL Insert Into Temp Table in both If and Else Blocks
I\'m trying to populate a temp table based on the result of a condition in SQL 2005.The temp table will have the same structure either way, but will be populated using a different query depending on t[详细]
2023-01-25 03:36 分类:问答