|
Hi, I've solved this problem for me (Perl). I have a module DBAPI and write a function InsertIntoTable($table_name, $hash_with_values, $data_base_handler). I send the parms to the function in the hash (key1 => value1, key2 => value2 ...) and in the function I compose the insert and execute it. INSERT INTO $table_name (key1, key2, key3) VALUES (value1, value2, value3); So I suggest you write such function and solve most of your problems:-) Regards, Kaloyan Iliev Clodoaldo wrote: 2008/2/29, Martijn van Oosterhout <[EMAIL PROTECTED]>:On Fri, Feb 29, 2008 at 01:17:20PM -0300, Clodoaldo wrote: > When inserting into a table and there are many columns to be inserted > it is hard to synchronize columns to values: |
- [GENERAL] Insert vs Update syntax Clodoaldo
- Re: [GENERAL] Insert vs Update syntax Martijn van Oosterhout
- Re: [GENERAL] Insert vs Update syntax Clodoaldo
- Re: [GENERAL] Insert vs Update syntax Brent Friedman
- Re: [GENERAL] Insert vs Update syn... Clodoaldo
- Re: [GENERAL] Insert vs Updat... Richard Huxton
- Re: [GENERAL] Insert vs Update syntax Kaloyan Iliev
