Query question

Started by Jorchabout 25 years ago6 messagesgeneral
Jump to latest
#1Jorch
jorch@saunalahti.fi

How can I make query

SELECT * FROM my_table WHERE my_field = 'A*';

Meaning that I want to get all rows from my_table where my_field value
begins with alphabet "A"

#2Ligia M. Pimentel
lmpc@nettaxi.com
In reply to: Jorch (#1)
Re: Query question

use
Select * from my_table where my_field LIKE 'A%'

the % stands for *.

"Jorch" <jorch@saunalahti.fi> wrote in message
news:3A648758.71C69867@saunalahti.fi...

Show quoted text

How can I make query

SELECT * FROM my_table WHERE my_field = 'A*';

Meaning that I want to get all rows from my_table where my_field value
begins with alphabet "A"

#3Michael Davis
mdavis@sevainc.com
In reply to: Jorch (#1)
Re: Query question

select * from my_table where my_field like 'A%';

"Jorch" <jorch@saunalahti.fi> wrote in message
news:3A648758.71C69867@saunalahti.fi...

Show quoted text

How can I make query

SELECT * FROM my_table WHERE my_field = 'A*';

Meaning that I want to get all rows from my_table where my_field value
begins with alphabet "A"

#4Colin Taylor
Colin_Taylor@PortaSystemsDev.com
In reply to: Michael Davis (#3)
RE: Query question

SELECT * FROM my_table WHERE my_field LIKE 'A%';
Should do it!

Show quoted text

-----Original Message-----
From: Jorch [mailto:jorch@saunalahti.fi]
Sent: Tuesday, January 16, 2001 5:40 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] Query question

How can I make query

SELECT * FROM my_table WHERE my_field = 'A*';

Meaning that I want to get all rows from my_table where my_field value
begins with alphabet "A"

#5Gregory Wood
gregw@com-stock.com
In reply to: Jorch (#1)
Re: Query question

SELECT * FROM my_table WHERE my_field LIKE 'A%';

Greg

----- Original Message -----
From: "Jorch" <jorch@saunalahti.fi>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, January 16, 2001 12:39 PM
Subject: Query question

Show quoted text

How can I make query

SELECT * FROM my_table WHERE my_field = 'A*';

Meaning that I want to get all rows from my_table where my_field value
begins with alphabet "A"

#6rob
rob@cabrion.com
In reply to: Jorch (#1)
Re: Query question

SELECT * FROM my_table WHERE my_field LIKE 'A%';

--rob

----- Original Message -----
From: "Jorch" <jorch@saunalahti.fi>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, January 16, 2001 12:39 PM
Subject: Query question

Show quoted text

How can I make query

SELECT * FROM my_table WHERE my_field = 'A*';

Meaning that I want to get all rows from my_table where my_field value
begins with alphabet "A"