Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Which one is the first priority between DDL and DML in sql server?

$
0
0

Hi,

       While executing the following scripts at one shot, I'm getting error message that is "Invalid column Name 'Subject'." May I know why this happened? Is there any priority between DDL and DML in sql server? Please any one let me know your thought (with example if possible).

SCRIPT:
       Alter table #TableName
            Add subject varchar(max)

      Update #TableName set subject= NULL

Thanks! in advance.

Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>