Question

I am receiving the error

Error #2044: Unhandled SQLErrorEvent:. errorID=3115, operation=execute , message=Error #3115: SQL Error. , details=near 'TEXT': syntax error

I am trying to learn programming, so I am following a video tutorial exactly. I have spent the past 3 hours looking for this syntax error and am trying to stay on course with the training. Could anyone please point me in the correct direction "Sadly the paid video course does not offer HELP :( " to solve this issue? It would also be nice to know if i can create the database in its own view and have other views write to it and pull data from it I don't know if the training will touch on this or not but would like to know where i can learn how to do this in a flex environment.

                                                                     the error below
            statement.text = "INSERT INTO archive (variable TEXT, variable TEXT) VALUES ('"+variable+"','"+variable+"')";
Was it helpful?

Solution

Try changing the beginning of your SQL statement to this:

INSERT INTO archive (title, journal) VALUES

You shouldn't include the data type in your insert statement.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top