![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need a way to insert a "registered" user's information in a database by field name? Like fetch _assoc does for retrieving. I add fields and using _query method - I need to know the orer of the fields. I want to insert by knowing field names but not order. Thanks, Mike |
#3
| |||
| |||
|
|
I need a way to insert a "registered" user's information in a database by field name? Like fetch _assoc does for retrieving. I add fields and using _query method - I need to know the orer of the fields. I want to insert by knowing field names but not order. Thanks, Mike |
#4
| |||
| |||
|
|
On Fri, 16 Sep 2011 09:07:20 -0400, Mike<no_please (AT) not (DOT) com> wrote: I need a way to insert a "registered" user's information in a database by field name? Like fetch _assoc does for retrieving. I add fields and using _query method - I need to know the orer of the fields. I want to insert by knowing field names but not order. Thanks, Mike My version is 5.0.92-community. Which manual would I download? Thanks Mike |
#5
| |||
| |||
|
|
On Fri, 16 Sep 2011 09:07:20 -0400, Mike <no_please (AT) not (DOT) com> wrote: I need a way to insert a "registered" user's information in a database by field name? ... I want to insert by knowing field names but not order. My version is 5.0.92-community. Which manual would I download? |
#6
| |||
| |||
|
|
Mike: On Fri, 16 Sep 2011 09:07:20 -0400, Mike<no_please (AT) not (DOT) com> wrote: I need a way to insert a "registered" user's information in a database by field name? ... I want to insert by knowing field names but not order. My version is 5.0.92-community. Which manual would I download? Hi Mike, You would probably want the INSERT...SET...-syntax http://dev.mysql.com/doc/refman/5.0/en/insert.html |
#7
| |||
| |||
|
|
On 9/17/2011 3:24 AM, Erick T. Barkhuis wrote: Mike: On Fri, 16 Sep 2011 09:07:20 -0400, Mike<no_please (AT) not (DOT) com> wrote: I need a way to insert a "registered" user's information in a database by field name? ... I want to insert by knowing field names but not order. My version is 5.0.92-community. Which manual would I download? Hi Mike, You would probably want the INSERT...SET...-syntax http://dev.mysql.com/doc/refman/5.0/en/insert.html Which is not standard SQL and not a good thing to use. You can do it with standard SQL, though. |
#8
| |||
| |||
|
|
On 9/17/2011 3:24 AM, Erick T. Barkhuis wrote: Mike: On Fri, 16 Sep 2011 09:07:20 -0400, Mike<no_please (AT) not (DOT) com wrote: I need a way to insert a "registered" user's information in a database by field name? ... I want to insert by knowing field names but not order. My version is 5.0.92-community. Which manual would I download? Hi Mike, You would probably want the INSERT...SET...-syntax http://dev.mysql.com/doc/refman/5.0/en/insert.html Which is not standard SQL and not a good thing to use. |
|
You can do it with standard SQL, though. |
#9
| |||
| |||
|
|
Jerry Stuckle: On 9/17/2011 3:24 AM, Erick T. Barkhuis wrote: Mike: On Fri, 16 Sep 2011 09:07:20 -0400, Mike<no_please (AT) not (DOT) com wrote: I need a way to insert a "registered" user's information in a database by field name? ... I want to insert by knowing field names but not order. My version is 5.0.92-community. Which manual would I download? Hi Mike, You would probably want the INSERT...SET...-syntax http://dev.mysql.com/doc/refman/5.0/en/insert.html Which is not standard SQL and not a good thing to use. I like to use the good things MySql has to offer. This is one of them. You can do it with standard SQL, though. ...but you don't want to tell anyone how that works. You'd rather wait for the thread to escalate, then throw in some valuable insults. Natch. Jerry doesn't actually KNOW anything. Except how to turn on error |
#10
| |||
| |||
|
|
On 17-09-2011 13:14, Jerry Stuckle wrote: On 9/17/2011 3:24 AM, Erick T. Barkhuis wrote: Mike: On Fri, 16 Sep 2011 09:07:20 -0400, Mike<no_please (AT) not (DOT) com> wrote: I need a way to insert a "registered" user's information in a database by field name? ... I want to insert by knowing field names but not order. My version is 5.0.92-community. Which manual would I download? Hi Mike, You would probably want the INSERT...SET...-syntax http://dev.mysql.com/doc/refman/5.0/en/insert.html Which is not standard SQL and not a good thing to use. You can do it with standard SQL, though. But, this being about MySQL..... why not do it the MySQL way? |
![]() |
| Thread Tools | |
| Display Modes | |
| |