dbTalk Databases Forums  

REGEXP question

comp.databases.mysql comp.databases.mysql


Discuss REGEXP question in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Preminger
 
Posts: n/a

Default REGEXP question - 03-10-2010 , 11:57 AM






Hello!

I am trying to identify values in a table column that start with an
uppercase later.

select * from tw_g3 where Term RLIKE '^[A-Z]{1}.+'

But I get all the columns (also those that start with a lower case.

Whats wrong?

Thanks

Michael

Reply With Quote
  #2  
Old   
Lennart
 
Posts: n/a

Default Re: REGEXP question - 03-10-2010 , 12:20 PM






On 10 mar, 18:57, Michael Preminger <michaelprem... (AT) gmail (DOT) com> wrote:
Quote:
Hello!

I am trying to identify values in a table column that start with an
uppercase later.

select * from tw_g3 where Term RLIKE '^[A-Z]{1}.+'

But I get all the columns (also those that start with a lower case.

Whats wrong?

See:

http://dev.mysql.com/doc/refman/5.1/...nsitivity.html


/Lennart

Reply With Quote
  #3  
Old   
Captain Paralytic
 
Posts: n/a

Default Re: REGEXP question - 03-12-2010 , 08:13 AM



On 10 Mar, 17:57, Michael Preminger <michaelprem... (AT) gmail (DOT) com> wrote:
Quote:
Hello!

I am trying to identify values in a table column that start with an
uppercase later.

select * from tw_g3 where Term RLIKE '^[A-Z]{1}.+'

But I get all the columns (also those that start with a lower case.

Whats wrong?

Thanks

Michael
SELECT * will always give all the columns.

Reply With Quote
  #4  
Old   
Erick T. Barkhuis
 
Posts: n/a

Default Re: REGEXP question - 03-12-2010 , 08:15 AM



Captain Paralytic:

Quote:
On 10 Mar, 17:57, Michael Preminger <michaelprem... (AT) gmail (DOT) com> wrote:
Hello!

I am trying to identify values in a table column that start with an
uppercase later.

select * from tw_g3 where Term RLIKE '^[A-Z]{1}.+'

But I get all the columns (also those that start with a lower case.

Whats wrong?

SELECT * will always give all the columns.
I assume Michael meant to say: all the rows.



--
Erick

Reply With Quote
  #5  
Old   
Scott Johnson
 
Posts: n/a

Default Re: REGEXP question - 03-13-2010 , 08:02 AM



On 3/12/2010 6:15 AM, Erick T. Barkhuis wrote:
Quote:
Captain Paralytic:

On 10 Mar, 17:57, Michael Preminger<michaelprem... (AT) gmail (DOT) com> wrote:
Hello!

I am trying to identify values in a table column that start with an
uppercase later.

select * from tw_g3 where Term RLIKE '^[A-Z]{1}.+'

But I get all the columns (also those that start with a lower case.

Whats wrong?

SELECT * will always give all the columns.

I assume Michael meant to say: all the rows.



He was correct in his statement, but adding 'all the rows' would of
expounded on it also.

Scotty

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.