DB2 Idenity column (autoinc)

create table student ( sid integer not null GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1) ,sname varchar(30) ,PRIMARY KEY (sid) );

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.