Обсуждение: Select Non Alpha Contents of a Column
Is there a way to select all rows where a certain column starts with non-alpha characters? I would like to select all the rows that don't start with letters. Possible? Hunter
--- Hunter Hillegas <lists@lastonepicked.com> wrote: > Is there a way to select all rows where a certain > column starts with > non-alpha characters? > > I would like to select all the rows that don't start > with letters. > > Possible? Regular expressions would do what you want, e.g. "select * from mytable where myfield !~ '^[a-zA-Z]';" Look under "pattern matching" in the "functions and operators" section of the manual (I think, working from memory). __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
El Lun 29 Dic 2003 20:11, Hunter Hillegas escribió:
> Is there a way to select all rows where a certain column starts with
> non-alpha characters?
>
> I would like to select all the rows that don't start with letters.
>
> Possible?
SELECT * FROM table_name WHERE col !~* '^a-z'
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-----------------------------------------------------------------
Martín Marqués | mmarques@unl.edu.ar
Programador, Administrador, DBA | Centro de Telemática
Universidad Nacional
del Litoral
-----------------------------------------------------------------