Is it possible to write a update statement and not give the columns names. For example
UPDATE tbl VALUES('1','2','3','4') WHERE id = 1;
The number of values will always match the column count.
Thanks in advance.
EDIT
I don’t know the column names only the number of columns.
I know i could delete the row and then do an insert be then the id(which is A_I) wont be the same.
Please help.
You can retrieve the list of columns using:
That allows you to build a new SQL query which checks for a value in each column. It’s best to do this in a client, like a C#, Python or perl script.