Keywords

Started by vyangabout 14 years ago6 messagesgeneral
Jump to latest
#1vyang
vyang@apt-cafm.com

Hello List,

I’m wondering if there is a way to retrieve/query PostgreSQL for a list of key words matching that of Appendix C. SQL Key Words. I’m using PostgreSQL 9.1 and java. I’ve already tried java’s DatabaseMetaData.getSQLKeywords, but the API states “Retrieves a comma-separated list of all of this database's SQL keywords that are NOT also SQL:2003 keywords.” As a result many key words are left out. Any help on this matter is much appreciated.

vyang

#2Adam Cornett
adam.cornett@gmail.com
In reply to: vyang (#1)
Re: Keywords

On Wed, Jan 11, 2012 at 11:03 AM, vyang <vyang@apt-cafm.com> wrote:

Hello List,

I’m wondering if there is a way to retrieve/query PostgreSQL for a list of
key words matching that of Appendix C. SQL Key Words. I’m using PostgreSQL
9.1 and java. I’ve already tried java’s DatabaseMetaData.getSQLKeywords,
but the API states “Retrieves a comma-separated list of all of this
database's SQL keywords that are NOT also SQL:2003 keywords.” As a result
many key words are left out. Any help on this matter is much appreciated.

vyang

The Manual has a list in the appendix:
http://www.postgresql.org/docs/9.1/static/sql-keywords-appendix.html

#3Dmitriy Igrishin
dmitigr@gmail.com
In reply to: vyang (#1)
Re: Keywords

Hey vyang,

2012/1/11 vyang <vyang@apt-cafm.com>

Hello List,

I’m wondering if there is a way to retrieve/query PostgreSQL for a list of
key words matching that of Appendix C. SQL Key Words. I’m using PostgreSQL
9.1 and java. I’ve already tried java’s DatabaseMetaData.getSQLKeywords,
but the API states “Retrieves a comma-separated list of all of this
database's SQL keywords that are NOT also SQL:2003 keywords.” As a result
many key words are left out. Any help on this matter is much appreciated.

vyang

Use pg_get_keywords().
http://www.postgresql.org/docs/9.1/static/functions-info.html

--
// Dmitriy.

#4Adam Cornett
adam.cornett@gmail.com
In reply to: Adam Cornett (#2)
Re: Keywords

On Wed, Jan 11, 2012 at 12:02 PM, Adam Cornett <adam.cornett@gmail.com>wrote:

On Wed, Jan 11, 2012 at 11:03 AM, vyang <vyang@apt-cafm.com> wrote:

Hello List,

I’m wondering if there is a way to retrieve/query PostgreSQL for a list
of key words matching that of Appendix C. SQL Key Words. I’m using
PostgreSQL 9.1 and java. I’ve already tried java’s
DatabaseMetaData.getSQLKeywords, but the API states “Retrieves a
comma-separated list of all of this database's SQL keywords that are NOT
also SQL:2003 keywords.” As a result many key words are left out. Any
help on this matter is much appreciated.

vyang

The Manual has a list in the appendix:
http://www.postgresql.org/docs/9.1/static/sql-keywords-appendix.html

Sorry for not reading the first part of your question, you've already found
the list I pointed you to.

Why can't you just save the list in Appendix C and read it in to your
application?

-Adam

#5vyang
vyang@apt-cafm.com
In reply to: Adam Cornett (#4)
Re: Keywords

From: Adam Cornett
Sent: Wednesday, January 11, 2012 11:05 AM
To: vyang
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Keywords

I want to grab it programmatically because from time to time words are added/removed.
On Wed, Jan 11, 2012 at 12:02 PM, Adam Cornett <adam.cornett@gmail.com> wrote:

On Wed, Jan 11, 2012 at 11:03 AM, vyang <vyang@apt-cafm.com> wrote:

Hello List,

I’m wondering if there is a way to retrieve/query PostgreSQL for a list of key words matching that of Appendix C. SQL Key Words. I’m using PostgreSQL 9.1 and java. I’ve already tried java’s DatabaseMetaData.getSQLKeywords, but the API states “Retrieves a comma-separated list of all of this database's SQL keywords that are NOT also SQL:2003 keywords.” As a result many key words are left out. Any help on this matter is much appreciated.

vyang

The Manual has a list in the appendix:
http://www.postgresql.org/docs/9.1/static/sql-keywords-appendix.html

Sorry for not reading the first part of your question, you've already found the list I pointed you to.

Why can't you just save the list in Appendix C and read it in to your application?

-Adam

#6vyang
vyang@apt-cafm.com
In reply to: Dmitriy Igrishin (#3)
Re: Keywords

That works perfectly. Thanks!!

From: Dmitriy Igrishin
Sent: Wednesday, January 11, 2012 11:03 AM
To: vyang
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Keywords

Hey vyang,

2012/1/11 vyang <vyang@apt-cafm.com>

Hello List,

I’m wondering if there is a way to retrieve/query PostgreSQL for a list of key words matching that of Appendix C. SQL Key Words. I’m using PostgreSQL 9.1 and java. I’ve already tried java’s DatabaseMetaData.getSQLKeywords, but the API states “Retrieves a comma-separated list of all of this database's SQL keywords that are NOT also SQL:2003 keywords.” As a result many key words are left out. Any help on this matter is much appreciated.

vyang

Use pg_get_keywords().
http://www.postgresql.org/docs/9.1/static/functions-info.html

--
// Dmitriy.