Re: left() in postgres
От | Bruce Momjian |
---|---|
Тема | Re: left() in postgres |
Дата | |
Msg-id | 200210251636.g9PGaO902807@candle.pha.pa.us обсуждение исходный текст |
Ответ на | left() in postgres (Peter Nixon <listuser@peternixon.net>) |
Ответы |
Re: left() in postgres
|
Список | pgsql-general |
Try substring(). --------------------------------------------------------------------------- Peter Nixon wrote: > Hi Guys > > I am trying to do a query similar to the following: > > select left(field,3) from table; > > Now this works in Mysql/Access etc etc, but not in postgres > (I am running PostgreSQL 7.2) > > Can anyone suggest how to do this in postgres? I have a database with many > millions of records, and this functionality is essential for me. > > PS. I did do a google search etc before posting. > > Regards > > -- > > Peter Nixon > http://www.peternixon.net/ > PGP Key: http://www.peternixon.net/public.asc > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
В списке pgsql-general по дате отправления: