|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
SQL help with INSERT query
Hi, i have a very small SQL question. I want to insert 2 values in to a database WHERE the userID=1.....
The SQL below shows what I have done so far, but I want it to enter these 2 values into the row where userID column equals 1. SQL_Insert = "INSERT into tblURL (urlName, urlAddress) values ('aaa', 'bbb')" Any help on this would be very much appreciated! Seb |
|
#2
|
|||
|
|||
|
INSERT adds new rows to a table.
If you want to update an existing row, use UPDATE tblURL SET urlName = 'aaa', urlAddress = 'bbb' WHERE userID = 1 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > SQL help with INSERT query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|