U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » Simple SQL question
Re: Simple SQL question [message #31373 is a reply to message #31366] Fri, 25 February 2011 20:00 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 25 February 2011 06:43

Hello all

I wanted to select all registers from columns Name, Surname and Location that contains either text1 or text2.

For example, if the table is:
Name	Surname 	Location
John	Doe		München
Mary 	Poppins		Bruxelles

with text1 = "pin" and text2 = "elle", the second register would be selected.

How could it be done?


http://www.postgresql.org/docs/8.3/static/functions-matching .html

I guess it is even SQL standard.

In SqlExp, use Like.

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: Mon Sep 07 04:16:46 GMT+2 2026

Total time taken to generate the page: 0.00780 seconds