I am wondering if the following SQL update query is possible using equivalent SubSonic commands:
UPDATE MYTABLE SET MYFIELD = MYFIELD + 3 WHERE ANOTHERFIELD = ANOTHERVALUE
I could not find a suitable way to link to the same field with the Setting object.
Any help on this would be greatly appreciated.
Hello,
Fernando
You can execute this query using the QueryCommand subsonic object.
Here you can find similar samples link and link
- "UpdateExpression" - , "" . - "SetExpression", , , .
, , SetExpression(), - , ... , ( ) - , ?
int count = new Update(MyTable.Schema).SetExpression("MyField").EqualTo("MyField + 20") .Where(....)
, , , , ( ), , .
Source: https://habr.com/ru/post/1727728/More articles:sending a vector from a function - c ++How to put an array in a bunch of POEs and click or put data? - heapLinear Algorithm - c ++Can a PHP script run regularly on the server without requests from the client? - phpPHP script that runs on the server without a client request - phpUnable to load google maps javascript dynamically - javascriptiPhone as a robot controller - iphoneHow to do the following in Dynamic Linq using the System.Linq.Dynamic namespace - linqchange wave height in Android? - androidIs there a way for BDD Ruby Shoes? - ruby | fooobar.comAll Articles