Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
sql data export through php
I'm exporting data from an old db to a new one with less fields, different field types, and so on. What i did first was copy the table as is from the old database to the new one, naming it tickets2. I'm using a php script to transform data within the old table and pass it to the new one.
This is the problem, I can't even get the SQL parser to recognise the following simple statement : (ive tried all of the following)
INSERT INTO tickets ('ID') SELECT ('ID') FROM tickets2
INSERT INTO tickets ('ID') VALUES ( SELECT ('ID') FROM tickets2 )
Obviously the SQL statement to transfer all the data is way more complex, but this doesn't even work. What's going on?