Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Problem with SqlUpdate
Problem with SqlUpdate [message #45715] Tue, 29 December 2015 07:51 Go to previous message
nilrum is currently offline  nilrum
Messages: 3
Registered: December 2015
Junior Member
Hi all!

How can I run the following query using the Sql Update:

update LINK set ID_OTHER = (select ID_TWO from TWO where NAME_TWO = 'Name')
where ID_LINK = 1

I tried the request, but is it wrong
SqlUpdate(LINK)(SqlSet(ID_OTHER), SqlSet(Select(ID_TWO).From(TWO).Where(NAME_TWO == "Name"))).Where(ID_LINK == 1);
==>
update LINK set (ID_OTHER) = (select ID_TWO from TWO where NAME_TWO = 'Name')
where ID_LINK = 1


How to remove the brackets around ID_OTHER?

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Commas into SQL
Next Topic: MySql, boolean values and SqlArray
Goto Forum:
  


Current Time: Sat Apr 27 21:43:55 CEST 2024

Total time taken to generate the page: 0.03428 seconds