View source with raw comments or as raw
    1/*  Part of SWI-Prolog
    2
    3    Author:        Matt Lilley
    4    E-mail:        matt.s.lilley@gmail.com
    5    WWW:           http://www.swi-prolog.org
    6    Copyright (c)  2014, Mike Elston, Matt Lilley
    7    All rights reserved.
    8
    9    Redistribution and use in source and binary forms, with or without
   10    modification, are permitted provided that the following conditions
   11    are met:
   12
   13    1. Redistributions of source code must retain the above copyright
   14       notice, this list of conditions and the following disclaimer.
   15
   16    2. Redistributions in binary form must reproduce the above copyright
   17       notice, this list of conditions and the following disclaimer in
   18       the documentation and/or other materials provided with the
   19       distribution.
   20
   21    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   22    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   23    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
   24    FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   25    COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
   26    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
   27    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   28    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
   29    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   30    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
   31    ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   32    POSSIBILITY OF SUCH DAMAGE.
   33*/
   34
   35/*  PostgreSQL is a trademark of the PostgreSQL Global Development Group.
   36    Microsoft, SQL Server, and Windows are either registered trademarks or
   37    trademarks of Microsoft Corporation in the United States and/or other
   38    countries. SQLite is a registered trademark of Hipp, Wyrick & Company,
   39    Inc in the United States. All other trademarks or registered trademarks
   40    are the property of their respective owners.
   41*/
   42
   43:-module(sql_keywords,
   44         [reserved_sql_keyword/1]).   45
   46reserved_sql_keyword(absolute).
   47reserved_sql_keyword(add).
   48reserved_sql_keyword(all).
   49reserved_sql_keyword(allocate).
   50reserved_sql_keyword(alter).
   51reserved_sql_keyword(and).
   52reserved_sql_keyword(any).
   53reserved_sql_keyword(are).
   54reserved_sql_keyword(as).
   55reserved_sql_keyword(asc).
   56reserved_sql_keyword(assertion).
   57reserved_sql_keyword(authorization).
   58reserved_sql_keyword(avg).
   59reserved_sql_keyword(begin).
   60reserved_sql_keyword(between).
   61reserved_sql_keyword(bit).
   62reserved_sql_keyword(bit_length).
   63reserved_sql_keyword(both).
   64reserved_sql_keyword(by).
   65reserved_sql_keyword(cascade).
   66reserved_sql_keyword(cascaded).
   67reserved_sql_keyword(case).
   68reserved_sql_keyword(cast).
   69reserved_sql_keyword(catalog).
   70reserved_sql_keyword(char).
   71reserved_sql_keyword(character).
   72reserved_sql_keyword(character_length).
   73reserved_sql_keyword(char_length).
   74reserved_sql_keyword(check).
   75reserved_sql_keyword(close).
   76reserved_sql_keyword(coalesce).
   77reserved_sql_keyword(collate).
   78reserved_sql_keyword(collation).
   79reserved_sql_keyword(column).
   80reserved_sql_keyword(commit).
   81reserved_sql_keyword(connect).
   82reserved_sql_keyword(connection).
   83reserved_sql_keyword(constraint).
   84reserved_sql_keyword(constraints).
   85reserved_sql_keyword(continue).
   86reserved_sql_keyword(convert).
   87reserved_sql_keyword(corresponding).
   88reserved_sql_keyword(create).
   89reserved_sql_keyword(cross).
   90reserved_sql_keyword(current).
   91reserved_sql_keyword(current_date).
   92reserved_sql_keyword(current_time).
   93reserved_sql_keyword(current_timestamp).
   94reserved_sql_keyword(current_user).
   95reserved_sql_keyword(cursor).
   96%reserved_sql_keyword(date).
   97reserved_sql_keyword(day).
   98reserved_sql_keyword(deallocate).
   99reserved_sql_keyword(dec).
  100reserved_sql_keyword(decimal).
  101reserved_sql_keyword(declare).
  102reserved_sql_keyword(default).
  103reserved_sql_keyword(deferrable).
  104reserved_sql_keyword(deferred).
  105reserved_sql_keyword(delete).
  106reserved_sql_keyword(desc).
  107reserved_sql_keyword(describe).
  108reserved_sql_keyword(descriptor).
  109reserved_sql_keyword(diagnostics).
  110reserved_sql_keyword(disconnect).
  111reserved_sql_keyword(distinct).
  112reserved_sql_keyword(domain).
  113reserved_sql_keyword(double).
  114reserved_sql_keyword(drop).
  115reserved_sql_keyword(else).
  116reserved_sql_keyword(end).
  117reserved_sql_keyword(exec).
  118reserved_sql_keyword(escape).
  119reserved_sql_keyword(except).
  120reserved_sql_keyword(execute).
  121reserved_sql_keyword(exists).
  122reserved_sql_keyword(external).
  123reserved_sql_keyword(extract).
  124reserved_sql_keyword(false).
  125reserved_sql_keyword(fetch).
  126reserved_sql_keyword(first).
  127reserved_sql_keyword(for).
  128reserved_sql_keyword(foreign).
  129reserved_sql_keyword(found).
  130reserved_sql_keyword(from).
  131reserved_sql_keyword(full).
  132reserved_sql_keyword(get).
  133reserved_sql_keyword(global).
  134reserved_sql_keyword(go).
  135reserved_sql_keyword(goto).
  136reserved_sql_keyword(grant).
  137reserved_sql_keyword(group).
  138reserved_sql_keyword(having).
  139reserved_sql_keyword(hour).
  140reserved_sql_keyword(identity).
  141reserved_sql_keyword(immediate).
  142reserved_sql_keyword(in).
  143reserved_sql_keyword(indicator).
  144reserved_sql_keyword(initially).
  145reserved_sql_keyword(inner).
  146reserved_sql_keyword(input).
  147reserved_sql_keyword(insensitive).
  148reserved_sql_keyword(insert).
  149reserved_sql_keyword(int).
  150reserved_sql_keyword(integer).
  151reserved_sql_keyword(intersect).
  152reserved_sql_keyword(interval).
  153reserved_sql_keyword(into).
  154reserved_sql_keyword(is).
  155reserved_sql_keyword(isolation).
  156reserved_sql_keyword(join).
  157reserved_sql_keyword(key).
  158reserved_sql_keyword(language).
  159reserved_sql_keyword(last).
  160reserved_sql_keyword(leading).
  161reserved_sql_keyword(left).
  162reserved_sql_keyword(level).
  163reserved_sql_keyword(like).
  164reserved_sql_keyword(local).
  165reserved_sql_keyword(lower).
  166reserved_sql_keyword(match).
  167reserved_sql_keyword(max).
  168reserved_sql_keyword(min).
  169reserved_sql_keyword(minute).
  170reserved_sql_keyword(module).
  171reserved_sql_keyword(names).
  172reserved_sql_keyword(national).
  173reserved_sql_keyword(natural).
  174reserved_sql_keyword(nchar).
  175reserved_sql_keyword(next).
  176reserved_sql_keyword(no).
  177reserved_sql_keyword(not).
  178reserved_sql_keyword(null).
  179reserved_sql_keyword(nullif).
  180reserved_sql_keyword(numeric).
  181reserved_sql_keyword(octet_length).
  182reserved_sql_keyword(of).
  183reserved_sql_keyword(on).
  184reserved_sql_keyword(only).
  185reserved_sql_keyword(open).
  186reserved_sql_keyword(option).
  187reserved_sql_keyword(or).
  188reserved_sql_keyword(order).
  189reserved_sql_keyword(outer).
  190reserved_sql_keyword(output).
  191reserved_sql_keyword(overlaps).
  192reserved_sql_keyword(pad).
  193reserved_sql_keyword(partial).
  194reserved_sql_keyword(position).
  195reserved_sql_keyword(precision).
  196reserved_sql_keyword(prepare).
  197reserved_sql_keyword(preserve).
  198reserved_sql_keyword(primary).
  199reserved_sql_keyword(prior).
  200reserved_sql_keyword(privileges).
  201reserved_sql_keyword(procedure).
  202reserved_sql_keyword(public).
  203reserved_sql_keyword(read).
  204reserved_sql_keyword(real).
  205reserved_sql_keyword(references).
  206reserved_sql_keyword(relative).
  207reserved_sql_keyword(restrict).
  208reserved_sql_keyword(revoke).
  209reserved_sql_keyword(right).
  210reserved_sql_keyword(rollback).
  211reserved_sql_keyword(schema).
  212reserved_sql_keyword(scroll).
  213reserved_sql_keyword(second).
  214reserved_sql_keyword(section).
  215reserved_sql_keyword(select).
  216reserved_sql_keyword(session).
  217reserved_sql_keyword(session_user).
  218reserved_sql_keyword(set).
  219reserved_sql_keyword(size).
  220reserved_sql_keyword(smallint).
  221reserved_sql_keyword(some).
  222reserved_sql_keyword(space).
  223reserved_sql_keyword(sql).
  224reserved_sql_keyword(sqlcode).
  225reserved_sql_keyword(sqlerror).
  226reserved_sql_keyword(sqlstate).
  227reserved_sql_keyword(substring).
  228reserved_sql_keyword(sum).
  229reserved_sql_keyword(system_user).
  230reserved_sql_keyword(table).
  231reserved_sql_keyword(temporary).
  232reserved_sql_keyword(then).
  233reserved_sql_keyword(time).
  234reserved_sql_keyword(timestamp).
  235reserved_sql_keyword(timezone_hour).
  236reserved_sql_keyword(timezone_minute).
  237reserved_sql_keyword(to).
  238reserved_sql_keyword(trailing).
  239reserved_sql_keyword(transaction).
  240reserved_sql_keyword(translate).
  241reserved_sql_keyword(translation).
  242reserved_sql_keyword(trim).
  243reserved_sql_keyword(true).
  244reserved_sql_keyword(union).
  245reserved_sql_keyword(unique).
  246reserved_sql_keyword(unknown).
  247reserved_sql_keyword(update).
  248reserved_sql_keyword(upper).
  249reserved_sql_keyword(usage).
  250reserved_sql_keyword(user).
  251reserved_sql_keyword(using).
  252reserved_sql_keyword(values).
  253reserved_sql_keyword(varchar).
  254reserved_sql_keyword(varying).
  255reserved_sql_keyword(view).
  256reserved_sql_keyword(when).
  257reserved_sql_keyword(whenever).
  258reserved_sql_keyword(where).
  259reserved_sql_keyword(with).
  260reserved_sql_keyword(work).
  261reserved_sql_keyword(write).
  262reserved_sql_keyword(zone).
  263
  264
  265reserved_sql_keyword(isnull).
  266reserved_sql_keyword(ltrim).
  267reserved_sql_keyword(replace).
  268reserved_sql_keyword(dateadd).
  269reserved_sql_keyword(datediff).
  270reserved_sql_keyword(charindex).
  271reserved_sql_keyword(datepart).
  272reserved_sql_keyword(abs)