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 #31463 is a reply to message #31386] Fri, 04 March 2011 12:00 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
koldo wrote on Sun, 27 February 2011 03:19

Hello Mirek

For the question it could be used:

SQL.Execute("select *, [Name] || '.' || [Surname] || '.' || [Location] as FULLDATA from PERSONAS where FULLDATA like '%" + pin1 + "%' and FULLDATA like '%" + pin2 + "%'");


The '.' is just to avoid that "aryPop" would match with register MaryPoppinsBruxelles.

Is it possible to do this and use ALIAS with SqlExp or it has to be done with plain SQL?


I have to admin I do not know what '[' and ']' mean in [Name] Smile

However, this excluded:

Select((NAME|"."|SURNAME).As(FULLDATA)).Where(Like(FULLDATA, "%"+pin1+"%");


should work.

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: Sun Jun 15 01:06:53 CEST 2025

Total time taken to generate the page: 0.04393 seconds