Adding Serial Type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pretty basic question. Is it necessary to add NOT NULL or UNIQUE NOT NULL to SERIAL or is this implicit and unnecessary?

ie.

CREATE TABLE new_table (
	id                             SERIAL UNIQUE NOT NULL,
	description             TEXT NOT NULL
);

Or should I just use below because Serial type implies this.

CREATE TABLE new_table (
	id                             SERIAL,
	description             TEXT NOT NULL
);


Regards,
David


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux