I want to know if incremental integer can be selected from mysql table? and if possible, how can I achieve this?
My thing is, I have a bunch of data and I need to do INSERT INTO newtable ... SELECT somefield FROM sometable . However, there is one field in newtable called counter , which I need as an incremental integer, for example:
row
I can do this using a simple php script, but I want to try to do all this from a mysql query. So can you guys tell me if this is possible?
ariefbayu
source share