I'm doing two exercises from Workbench . The exercise asks to create a table called CLIENTS with the following fields:
cod : size 5 integer filled with zeros, does not accept nulls.
name : variable text of 30, does not accept nulls.
Last names: Variable text of 50, does not accept nulls.
Balance : number with 2 decimals and a resolution of 6 digits. It will not accept negative numbers. Default value 1000.
This is the query:
CREATE TABLE CLIENTES
cod(5) NOT NULL, PRIMARY KEY
nombre (30) NULL
apellidos (50) NULL
saldo (2,6) NOT NULL default 1000
and shows an error of: error code 1046, no database selected