SQL syntax differences between SQL Server and access

Source: Internet
Author: User

From Internet

The syntax differences between SQL Server and access are listed below, so that you can easily changeProgramDatabase query.

Date separator number
Access:Pound sign (#)
SQL Server: marker (')

BooleanConstant
Access: True, false; On, off; yes, no; INTEGER:-1 (true), 0 (false ).
SQL Server: INTEGER: 1 (true), 0 (false)

 

String connection
Access: and (&)
SQL Server: plus sign (+)

Wildcard
Access: The asterisk (*) matches zero or more characters.
Question mark (?) Matches a single character.
Exclamation point (!) This means that the instance is not in the list.
The pound sign (#) indicates a single number.
SQL Server: percent sign (%) matches zero or more characters.
The underscore (_) matches a single character.
The prefix (^) indicates that it is not in the list.
No character corresponding to the pound character.

Drop Index
Access: drop index <index Name> On <Table Name>
SQL Server: drop index <Table Name>. <index Name>

Add an ID column in the table
access: alter table

counter)
SQL SERVER: ALTER TABLE Add
bigint identity (1, 1) not null

Add

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.