CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> General/Other

 autoincrement

Print topic Send  topic

Author Message
stephanelux

Posts: 7
Posted: 07/22/2004, 9:25 AM

Hi,

how can in create an autoincrement in codecharge for a primary key. I am unsing postgresql.

Kind regards

Stépbane
View profile  Send private message
Anton Hinxman
Posted: 07/26/2004, 5:30 AM

CREATE TABLE yourtable (
theautopk SERIAL PRIMARY KEY,
yourothercolumn INTEGER);

INSERT INTO yourtable VALUES(default,1234);

So the trick is to 'convince' CCS to supply the 'default' text against the PK value. You may have to do this in BeforeBuildInsert so that you can change the SQL build parameter for the PK?


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.