| | |
Questions about SQL
Please support our Database Design advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jan 2008
Posts: 54
Reputation:
Solved Threads: 0
I want to get the row number of a specific row in the table.
Also is this legal?
Also is this legal?
INSERT INTO (SELECT * FROM myTable WHERE mynumber=2) VALUES ........
•
•
•
•
I want to get the row number of a specific row in the table.
Also is this legal?
INSERT INTO (SELECT * FROM myTable WHERE mynumber=2) VALUES ........
ROWNUM ) but MySQL for example does not.Your statement is invalid; if you want to update a row you should be doing:
sql Syntax (Toggle Plain Text)
UPDATE myTable SET foo = 'bar' WHERE mynumber = 2;
Last edited by pty; Jun 5th, 2009 at 10:17 am.
Note to self... pocket cup
![]() |
Similar Threads
- problem in solve query?? (Java)
- Hello everyone, MS SQL roooookie here (Community Introductions)
- Right Forum? (MySQL)
- C# + SQL Login Form (C#)
- SQL - questions . (MySQL)
- finding a matches recursively (MS SQL)
- SQL Server vs MYSQL vs MSQL (i'm stopping now) (MS SQL)
- I had a experience of a website coded in PHP (PHP)
- SQL server error: 18452 - connection to SQL error (Windows NT / 2000 / XP)
- ASP and SQL ? (MS SQL)
Other Threads in the Database Design Forum
- Previous Thread: To First Normal form or Not?
- Next Thread: Database design for child care
| Thread Tools | Search this Thread |





