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 » How to use Sql * Update
How to use Sql * Update [message #19632] Wed, 24 December 2008 14:47 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
I'm trying to use the following code to update a sql-table:

Sql sql(session);
		
sql * Update(SqlId(sqlTable))
(NAME, customer.name)
(NUMMER, customer.number)
(PRODUKT, customer.product)
(VERSION, customer.version)
(STANDORT, customer.location)
(ANBINDUNG, customer.connection)
(BEMERKUNG, customer.comment)
.Where(ID == customer.sqlID);


I get these error:

H:\Entwicklung\UPP\prohibisZA\prohibisZA.cpp(1274) : error C2660: 'Upp::Ctrl::Update' : function does not take 1 arguments
H:\Entwicklung\UPP\prohibisZA\prohibisZA.cpp(1282) : error C2228: left of '.Where' must have class/struct/union
prohibisZA: 1 file(s) built in (0:01.87), 1872 msecs / file, duration = 1919 msecs, parallelization 0%

There were errors. (0:02.48)


What went wrong?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Issue with getting data back from a sqlite3 database
Next Topic: OleDB + parameters = problem
Goto Forum:
  


Current Time: Wed May 15 14:51:53 CEST 2024

Total time taken to generate the page: 0.02679 seconds