CREATE DATABASE act; CREATE TABLE Department ( Code int not null, Name varchar(20) not null, Budget int not null, PRIMARY KEY (Code) ); describe Department; begin INSERT INTO Department VALUES (14, 'IT', 65000); INSERT INTO Department VALUES (37, 'Accounting', 15000); INSERT INTO Department VALUES (59, 'Human Resources', 240000); INSERT INTO Department VALUES (77, 'Research', 55000); end; SELECT * FROM Department;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter