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 » Simple SQL question
Re: Simple SQL question [message #31475 is a reply to message #31464] Sat, 05 March 2011 09:10 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 04 March 2011 07:36

Hello Mirek

There are some problems (I use sqlite):

- Instead of FULLDATA it has to be used "FULLDATA", as it is a new column so it is not in .sch file



Then define it locally:

SqlId FULLDATA("FULLDATA");

(perhaps I would rather use something more simple as "F").

Quote:


- NAME|"."|SURNAME is translated to "NAME + '.' + SURNAME". It does not produce any SQL error, but no register is found.
However this works: "NAME || '.' || SURNAME"



That is weird, in SqlExp '|' should be string cat. It could be a bug in SqlExp for specific target DB - what DB is it?

(FYI, it is quite simple, check operator| in SqlExp and see how SqlCase is used to provide different code for different DBs....)

Quote:


- I would like to select all columns plus FULLDATA. How is it done in the Select()?



Select(SqlAll(), FULLDATA)

should work here.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SQLArray + Like() + Accents problem
Next Topic: Demo Package of FieldOperator usage
Goto Forum:
  


Current Time: Sat Aug 02 19:35:20 CEST 2025

Total time taken to generate the page: 0.09112 seconds