Common Reserved Words in ASP (notes for variables and table names are unavailable)

Source: Internet
Author: User

When writing a program, many people tend to use the reserved words of the program easily or accidentally. Sometimes the program cannot be correctly executed because it is clearly correct. Do you know the Common Reserved Words?

The following are all programming programs and table names that cannot be used. If you accidentally use them, you need the following solution:
Error solution when using USER as the database table name
1. Because User is a keyword, you can change the table name.
2. If you do not want to change the table name, you must use [User] instead of User when operating the table. For example:

SELECT UserName FROM [User] WHERE UserId = 1
Insert into [User] (UserName, PassWord) VALUES ('admin', 'admin ').

Microsoft Access

Reserved Words

-
ADD
ALL
Alphanumeric
ALTER
AND
ANY
Application
AS
ASC
Assistant
AUTOINCREMENT
Avg
-B
BETWEEN
BINARY
BIT
BOOLEAN
BY
BYTE
-C
CHAR, CHARACTER
COLUMN
CompactDatabase
CONSTRAINT
Container
Count
COUNTER
CREATE
CreateDatabase
CreateField
CreateGroup
CreateIndex
CreateObject
CreateProperty
CreateRelation
CreateTableDef
CreateUser
CreateWorkspace
CURRENCY
CurrentUser
-D
DATABASE
DATE
DATETIME
DELETE
DESC
Description
DISALLOW
DISTINCT
DISTINCTROW
Document
DOUBLE
DROP
-E
Echo
Else
End
Eqv
Error
EXISTS
Exit
-F
FALSE
Field, Fields
FillCache
FLOAT, FLOAT4, FLOAT8
FOREIGN
Form, Forms
FROM
Full
FUNCTION
-G
GENERAL
GetObject
GetOption
GotoPage
GROUP
GROUP
GUID
-H
HAVING
-I
Idle
IEEEDOUBLE, IEEESINGLE
If
IGNORE
Imp
IN, In
INDEX
Index, Indexes
INNER
INSERT
InsertText
INT, INTEGER, INTEGER1, INTEGER2, INTEGER4
INTO
IS, Is
-J
JOIN
-K
KEY
-L
LEFT
Level
Like
LOGICAL, LOGICAL1
LONG, LONGBINARY, LONGTEXT
-M
Macro
Match
Max, Min, Mod
MEMO
Module
MONEY
Move
-N
NAME
NewPassword
NO
Not
NULL
NUMBER, NUMERIC
-O
Object
OLEOBJECT
OFF
ON
OpenRecordset
OPTION
OR, Or
ORDER
Outer
OWNERACCESS
-P
Parameter
PARAMETERS
Partial
PERCENT
Bytes
PRIMARY
PROCEDURE
Property
-Q
Queries
Query
Quit
-R
REAL
Recalc
Recordset
REFERENCES
Refresh
RefreshLink
RegisterDatabase
Relation
Repaint
RepairDatabase
Report
Reports
Requery
RIGHT
-S
SCREEN
SECTION
SELECT)
SET
SetFocus
SetOption
SHORT
SINGLE
SMALLINT
SOME
SQL
StDev, StDevP
STRING
Sum
-T
TABLE
TableDef, TableDefs
TableID
TEXT
TIME, TIMESTAMP
TOP
TRANSFORM
TRUE
Type
-U
UNION
UNIQUE
UPDATE
User
-V
VALUE
VALUES
Var, VarP
VARBINARY, VARCHAR
-W
WHERE
WITH
Workspace
-X
Xor
-Y
Year
YES
YESNO

MySQL

ADD
ALL
ALTER
ANALYZE
AND
AS
ASC
AUTO_INCREMENT

BDB
BERKELEYDB
BETWEEN
BIGINT
BINARY
BLOB
BOTH
BY

CASCADE
CASE
CHANGE
CHAR
CHARACTER
COLUMN
COLUMNS
CONSTRAINT
CREATE
CROSS
CURRENT_DATE
CURRENT_TIME
CURRENT_TIMESTAMP
DATABASE
DATABASES
DAY_HOUR
DAY_MINUTE
DAY_SECOND
DEC DECIMAL
DEFAULT
DELAYED
DELETE
DESC
DESCRIBE
DISTINCT
DISTINCTROW
DOUBLE
DROP

ELSE
ENCLOSED
ESCAPED
EXISTS
EXPLAIN

FIELDS
FLOAT
FOR
FOREIGN
FROM
FULLTEXT
FUNCTION

GRANT
GROUP

HAVING
HIGH_PRIORITY
HOUR_MINUTE
HOUR_SECOND

IF
IGNORE
IN
INDEX
INFILE
INNER
INNODB
INSERT
INT
INTEGER
INTERVAL
INTO
IS JOIN

KEY
KEYS
KILL

LEADING
LEFT
LIKE
LIMIT
LINES
LOAD
LOCK
LONG
LONGBLOB
LONGTEXT
LOW_PRIORITY

MASTER_SERVER_ID MATCH
MEDIUMBLOB
MEDIUMINT
MEDIUMTEXT
MIDDLEINT
MINUTE_SECOND
MRG_MYISAM

NATURAL
NOT
NULL
NUMERIC

ON
OPTIMIZE
OPTION
OPTIONALLY
OR
ORDER
OUTER
OUTFILE

PARTIAL
PRECISION
PRIMARY
PRIVILEGES
PROCEDURE
PURGE

READ
REAL
REFERENCES
REGEXP
RENAME
REPLACE
REQUIRE
RESTRICT
RETURNS
REVOKE
RIGHT
RLIKE

SELECT
SET
SHOW
SMALLINT
SONAME
SQL _BIG_RESULT
SQL _CALC_FOUND_ROWS SQL _SMALL_RESULT
SSL
STARTING
STRAIGHT_JOIN STRIPED

TABLE
TABLES
TERMINATED
THEN
TINYBLOB
TINYINT
TINYTEXT
TO
TRAILING

UNION
UNIQUE
UNLOCK
UNSIGNED
UPDATE
USAGE
USE
USER_RESOURCES
USING

VALUES
VARBINARY
VARCHAR
VARYING
WHEN
WHERE
WITH
WRITE

XOR

YEAR_MONTH

ZEROFILL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.