第3章 T-SQL语言简介
批处理两者缺一不可 例: use student Go Create view computer_student As Select * from tblstudnet /*使用了查询语句*/ Where class_id in (select class_id from tblclass where depart_id='3') Go Select * from computer_student GO是批处理的标志,表示SQL Server将这些T-SQL语句 编
译为一个执行单元,提高执行效率 一般是将一些逻辑相关的业务操作语句,放置在同一批 第19页 SQL Server 2005 中,这完全由业务需求和代码编写者决定