0

when i execute: dbObj.execSql("INSERT INTO table_name (col1,col2) VALUES(1,\"\") "); col2 is saved as NULL? or EMPTY STRING? OR WHAT!!!!!?

Because on retrieval it shows col2 is NULL, even when my table_name deifinition is:

CREATE TABLE table_name( col1 INTEGER, col2 VARCHAR(255) NOT NULL DEFAULT \"\");

1 Answers1

1

No reason to scream. Your question is a little stupid. You insert an empty string. So obviously an empty string is saved.

SQLiteDatabase's method is "execSQL". "execSql" doesn't exist.

Maybe your code to read col2 is wrong...

The incredible Jan
  • 741
  • 10
  • 17