I have an ADT that I can modify using Advantage Data Architect.
However I wish to be able to modify the table using adsdb. I've created the table using;
cnxn = adsdb.connect(DataSource='c:/Python27/', ServerType='1')
cursor = cnxn.cursor()
cursor.execute('CREATE TABLE Persons (PersonID INTEGER, LastName CHAR(100), FirstName CHAR(100))'
I am able to Insert data into the PersonsID field using;
cursor.execute('INSERT INTO Persons (PersonID) VALUES (01)')
However trying to insert data into the the columns of char type using;
cursor.execute('INSERT INTO Persons (LastName) VALUES ("Smith")')
I get the error;
adsdb.OperationalError: Error 7200: AQE Error: State = S0000; NativeError = 2121; [iAnywhere Solutions][Advantage SQL Engine]Column not found: Smith -- Location of error in the SQL statement is: 40
I have tried using single quotes and no quotes in the VALUE field, but I'm still presented with the error. I have Google'd the error codes provided but I have found little in way of a solution.