[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[SOLVED] SQL data source  XML
Forum Index » User help
Author Message
tiago156

Padawan

Joined: 02/02/2012 12:36:46
Messages: 97
Offline

Hi,

I'm configuring a SQL point and it have one parameter called "Update statement" (attachment), how it works?

Can i create a UPDATE/INSERT using the value that the user set?

Example: user on watch list set a point to 25, how can i put this value on the SQL, i need to use some environment variable? like VALUE or TIMESTAMP?

update table set column1 = ?VALUE?, column2 = ?TIMESTAMP?
where column3 = "test"




Thanks

This message was edited 1 time. Last update was at 25/07/2012 03:11:54

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Only the value is used, not the timestamp. Your insert/update statement might look like this:



The '?' is the value parameter.


Best regards,
Matthew Lohbihler
tiago156

Padawan

Joined: 02/02/2012 12:36:46
Messages: 97
Offline

Thank you.
 
Forum Index » User help
Go to:   
Powered by JForum 2.1.9 © JForum Team