I created a table, but when I wanted to insert values the
table was not found!
TDDB $>create table test (id int);
Table Created Successfully.
Query Execution Time: 0.09 sec.
TDDB $>select * from test;
SELECT: Table `test,global' does not exist.
There was an error executing the statement.
Query Execution Time: 0 sec.
TDDB $>insert into test values (1);
INSERT: Table `test,global' does not exist.
There was an error executing the statement.
Query Execution Time: 0 sec.
Yes, there are 2 things to take care of:
- Even DDL statements are Transactional(you need to explicitly
COMMIT after creating the table)
- The default mode of the client is AUTOCOMMIT OFF.
So, if you exited the client with exit or Ctrl+D, the table will now
have shown up, and the INSERT will work, since the client COMMITs on
exit. You can view the list of tables by doing a "SELECT * FROM
global.tabtab;"