SQL Server UPDATE statement to note

Source: Internet
Author: User
Tags aliases

Aliases cannot be used for tables in update statements in SQL Server

Eg:update Table A set a.column= "" where ...

This is not true in SQL Server (it can be in Oracle), and you can't use aliases for tables.

This is because the UPDATE statement we've been writing is abbreviated, and it's actually the right thing to do:

Update T set t.column= ' from table t where ...

Reference: http://blog.csdn.net/zyzlywq/article/details/6753648

Reference : http://www.cnblogs.com/KevinYang/archive/2010/07/09/1774063.html

SQL Server UPDATE statement to note

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.