Dashboard > GreenPepperOpen > ... > Database > Insert with returning
  GreenPepperOpen Log In View a printable version of the current page.  
  Insert with returning
Added by Francois Denommee, last edited by Francois Denommee on Jan 27, 2010
Labels: 
(None)

database-connection

connect to MySql database on localhost with username dbgreenpepper and password dbgreenpepper and database dbgreenpepper

Insert Into interpreter can be used to set symbol values with autogenerated primary keys.

insert into Table   users
username name userid?=
pera pera pera user1
nuja nuja nuja user2
nnn nnn nnn user3

Symbols are then automatically available as bind variables for queries

set of query   Select * from users where userid=@user1
username name
pera pera pera

How can you enable this feature for Oracle databases with sequences ?

 What I would like is a way to somehow do a

| set | parameter | | my_param | select SEQUENCE_NAME.nextval from dual |

| insert into | Tabøe | | TABLENAME |
| PRIMARY_KEY | COL1 | COL 2 | ... |
| @my_param | VAL1 | VAL2| ... |

 Is some thing like this possible with dbGreenPepper ?

Posted by Anonymous at Apr 15, 2010 14:04
DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007) - Bug/feature request - Contact Administrators