I get error that thetable does not exist. What di i do wrong?
You are getting this error because you did not create that table. Before running any query you have to build the schema.
ie
create table contract(contract_id integer);
You can insert the data and perform your queries.
insert into contract values(4);
Otherwise it will give this error that table does not exist.
you should create a table before executing a query.
CREATE TABLE contract (
`id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` VARCHAR(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL
)ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
see this sqlfiddle
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.