HELP PLS: Qu CREATE TABLE SQL
Hi, I'm not sure why one query worked and the other doesn't. [Works] CREATE TABLE test ( id INTEGER PRIMARY KEY, a INTEGER, b TEXT ); INSERT INTO test ( a,b ) VALUES ( 10, 'a'); INSERT INTO test ( a,b ) VALUES ( 11, 'b'); INSERT INTO test ( a,b ) VALUES ( 12, 'c'); SELECT * FROM test; [Doesn't work=says "Columns don't exist] CREATE TABLE test ( id INTEGER PRIMARY KEY, a TEXT, b INTEGER ); INSERT INTO test ( a,b ) VALUES ( a, '11'); INSERT INTO test ( a,b ) VALUES ( b, '12'); INSERT INTO test ( a,b ) VALUES ( c, '13'); SELECT * FROM test; ---------------------------------- The schema is swapped around, but other than that I would have thought that both queries would have generated the table just with the values swapped around. Can someone please explain what I am missing? TIA