When I connect to CockroachDB using cockroach sql
, I have to prefix all table names with the name of the database:
SELECT * FROM db.table1;
If I forget to specify the database, like
SELECT * FROM table1;
I get the error pq: table "table1" does not exist
.