Hello,
I would like to create stored procedure witch is do next job:
1. I have some table ( field1, field2, field3 - all smallint )
2. My procedure will update this table with SQL statment UPDATE table SET field3 = field3 + 1 WHERE field1 = :f1 AND field2 = :f2
3. If field1 or field2 does not exist procedure dont use SELECT statment form, but automaticly insert fields somethin like INSERT INTO table :f1, :f2, :f3
4. Thanks for all answeres
Krshin
I would like to create stored procedure witch is do next job:
1. I have some table ( field1, field2, field3 - all smallint )
2. My procedure will update this table with SQL statment UPDATE table SET field3 = field3 + 1 WHERE field1 = :f1 AND field2 = :f2
3. If field1 or field2 does not exist procedure dont use SELECT statment form, but automaticly insert fields somethin like INSERT INTO table :f1, :f2, :f3
4. Thanks for all answeres
Krshin