Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
SQL Server 2000 Stored Procedure Programming phần 3
Đang chuẩn bị liên kết để tải về tài liệu:
SQL Server 2000 Stored Procedure Programming phần 3
Hương Ly
76
76
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Phương pháp thứ hai cho ý kiến là nguồn gốc cho SQL Server. Nó phù hợp cho ý kiến ra các khối mã có thể chiều dài nhiều dòng. Một nhận xét như vậy phải được chia từ phần còn lại của mã với một cặp của các dấu phân cách: (/ *) và Đây là chú thích. Tất cả những dòng này sẽ được bỏ qua. | 136 SQL Server 2000 Stored Procedure Programming This type of comment can be nested in another comment defined with the same or a different method -- select from Equipment -- Just for debugging This commenting method is compatible with the SQL-92 standard. Multi-Line Comments . The second commenting method is native to SQL Server. It is suitable for commenting out blocks of code that can span multiple lines. Such a comment must be divided from the rest of the code with a pair of delimiters and This is a comment. All these lines will be ignored. List all equipment. select from Equipment Comments do not have a length limit. It is best to write as much as is necessary to adequately document the code. SQL Server documentation forbids the nesting of multi-line comments. In different versions and in different tools this may or may not generate a syntax error This is a comment. Query Analyzer will understand the following delimiter as the end of the first comment. This will generate a syntax error in some cases. Select from Equipment If you type this code in Query Analyzer the program will not color the last line of explanation as a comment. I am not sure you will be able to see a difference on the paper. However during the execution in Query Analyzer the third line of the comment is ignored and will return a resultset without reporting a syntax error see Figure 4-1 . 137 Chapter 4 Basic Transact-SQL Programming Constructs Figure 4-1. Problems with comments Single-line comments can be nested inside multi-line comments -- List all equipment. Select from Equipment In Chapter 6 when we discuss batches we will illustrate the requirement that multi-line comments not span two or more batches. Documenting Code Again your comments will be of benefit to other developers who may read your code and they will be better still if you make their presence in the code as obvious as possible. It is a favorable although 138 SQL Server 2000 Stored Procedure Programming not required practice
TÀI LIỆU LIÊN QUAN
Ebook Tự học Microsoft SQL Server 2000 trong 21 ngày - NXB Lao động Xã hội
Giáo trình SQL Server 2000: Phần 1
Tự học SQL server 2000 part 5
Tự học SQL server 2000 part 6
Tự học SQL server 2000 part 7
Tự học SQL server 2000 part 8
Tự học SQL server 2000 part 9
Tự học SQL server 2000 part 1
Tự học SQL server 2000 part 2
Tự học SQL server 2000 part 3
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.