How to make the Primary Key have X digits in PostgreSQL?
问题 I am fairly new to SQL but have been working hard to learn. I am currently stuck on an issue with setting a primary key to have 8 digits no matter what. I tried using INT(8) but that didn't work. Also AUTO_INCREMENT doesn't work in PostgreSQL but I saw there were a couple of data types that auto increment but I still have the issue of the keys not being long enough. Basically I want to have numbers represent User IDs, starting at 10000000 and moving up. 00000001 and up would work too, it