ASP common reserved word collation (variable and table name attention can not be used) _asp Foundation

Source: Internet
Author: User
Tags numeric reserved
Many people in the process of writing a program because of the convenience or careless use of the program's reserved words, sometimes clearly the program is not wrong, is not properly executed. Do you know what are the common reserved words?

The following are all programming programs and table names can not be used, if used carelessly, you need the following method to solve
Error resolution when using user as database table name
1. Because user is the keyword, changing the table name can be resolved.
2. If you do not want to change the table name, then we can not use user when manipulating this table, but should use [user], for example:

SELECT UserName from [User] WHERE UserId = 1
INSERT into [User] (Username,password) VALUES (' admin ', ' admin ').

Microsoft Access

reserved word

-A
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 by
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, are
-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
PIVOT
PRIMARY
PROCEDURE
Property
-Q
Queries
Query
Quit
-R
Real
Recalc
Recordset
REFERENCES
Refresh
RefreshLink
RegisterDatabase
Relation
Repaint
RepairDatabase
He
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.