I want to know how to select values from a column that has SERIAL data type.
I already try to do that but the output is like this 'Resource id #3', and not just '3'
I use SERIAL so I dont have to input ID like when I use integer
1 Answer 1
There is no actual serial
data type. serial
is just a notational convenience.
The resulting data type is integer
for serial
or bigint
for bigserial
Related answer on SO with more details:
Auto increment SQL function
You'd have to be more specific for a more specific answer.
-
3dba.stackexchange.com/questions/47098/… (self plug!)András Váczi– András Váczi2014年07月03日 14:51:22 +00:00Commented Jul 3, 2014 at 14:51