dbTalk Databases Forums  

Add to database

comp.databases.progress comp.databases.progress


Discuss Add to database in the comp.databases.progress forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Yatin Soni
 
Posts: n/a

Default Add to database - 10-11-2004 , 08:36 AM






Hi
What is the command to add a record to a table?
Thanks

Reply With Quote
  #2  
Old   
Kevin
 
Posts: n/a

Default Re: Add to database - 10-11-2004 , 12:10 PM






soni1000 (AT) webmail (DOT) co.za (Yatin Soni) wrote in
news:7be6da7c.0410110536.48130027 (AT) posting (DOT) google.com:

Quote:
Hi
What is the command to add a record to a table?
Thanks

Create


Reply With Quote
  #3  
Old   
Lyndon Barrie
 
Posts: n/a

Default Re: Add to database - 10-11-2004 , 02:26 PM



insert

http://www.w3schools.com/sql/sql_insert.asp
"Yatin Soni" <soni1000 (AT) webmail (DOT) co.za> wrote

Quote:
Hi
What is the command to add a record to a table?
Thanks



Reply With Quote
  #4  
Old   
Scott Auge
 
Posts: n/a

Default Re: Add to database - 10-11-2004 , 06:47 PM



In article <7be6da7c.0410110536.48130027 (AT) posting (DOT) google.com>,
soni1000 (AT) webmail (DOT) co.za (Yatin Soni) wrote:

Quote:
Hi
What is the command to add a record to a table?
Thanks
/* This will create a database record in the 4GL */
/* The default buffer name is the same as the table, */
/* Otherwise you need to do a DEF BUFFER x FOR y. */

CREATE MyTableName.

/* Once this statement is executed, a transaction is */
/* opened automatically. You assign values with the */
/* ASSIGN statement. */

ASSIGN MyTableName.Field1 = "some character"
MyTableName.Field2 = 23.

/* End of program causes transaction to automatically */
/* commit. If you need to undo a block, use the DO */
/* TRANSACTION statement. */
/* The end of a transaction block statement will com- */
/* mit the record also. */

There is a bunch of source code available here:

http://amduus.com/OpenSrc/SrcLib/

It should give you some ideas about what is going on.

You can also subscribe to a list of progress programmers at www.peg.com.
There is also progresstalk.com which is more web based with a seperate
base of people.


Reply With Quote
  #5  
Old   
Yatin Soni
 
Posts: n/a

Default Re: Add to database - 10-12-2004 , 03:36 AM



Scott Auge <scott_auge (AT) yahoo (DOT) com> wrote

Quote:
In article <7be6da7c.0410110536.48130027 (AT) posting (DOT) google.com>,
soni1000 (AT) webmail (DOT) co.za (Yatin Soni) wrote:

Hi
What is the command to add a record to a table?
Thanks

/* This will create a database record in the 4GL */
/* The default buffer name is the same as the table, */
/* Otherwise you need to do a DEF BUFFER x FOR y. */

CREATE MyTableName.

/* Once this statement is executed, a transaction is */
/* opened automatically. You assign values with the */
/* ASSIGN statement. */

ASSIGN MyTableName.Field1 = "some character"
MyTableName.Field2 = 23.

/* End of program causes transaction to automatically */
/* commit. If you need to undo a block, use the DO */
/* TRANSACTION statement. */
/* The end of a transaction block statement will com- */
/* mit the record also. */

There is a bunch of source code available here:

http://amduus.com/OpenSrc/SrcLib/

It should give you some ideas about what is going on.

You can also subscribe to a list of progress programmers at www.peg.com.
There is also progresstalk.com which is more web based with a seperate
base of people.


Thanks guys..
Appreciate the guidance!!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.