raw sql or any other way

Posts   
 
    
jheinz
User
Posts: 4
Joined: 11-Jun-2006
# Posted on: 14-Dec-2006 16:42:59   

Hello,

How can I solve this problem:

sql = "update table1 set table1.field1 = table1.field1 +1 where .....

I don't want to use stored procedures...

Best regards

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 14-Dec-2006 17:09:09   

There's an example in the manual which does: "update table1 set table1.field1 = table1.field1 + (table1.field1 * 0.1) where..." so effectively the same structure. The example is in: Using the generated code, Field expressions and aggregates -> Expressions in entity updates.

Frans Bouma | Lead developer LLBLGen Pro