TAILIEUCHUNG - Oracle XSQL combining sql oracle text xslt and java to publish dynamic web content phần 4

Tham khảo tài liệu 'oracle xsql combining sql oracle text xslt and java to publish dynamic web content phần 4', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 160 Chapter 8 Table Set Comparison Operators OPERATOR DESCRIPTION EXAMPLE IN Tests if an operand belongs to the specified set. SELECT ename FROM emp WHERE sal IN 800 950 1100 NOT IN Tests if an operand doesn t belong to the specified set. SELECT ename FROM emp WHERE sal NOT IN 800 950 1100 ANY Used in conjunction with a relationship comparison operator. Determines if the specified relationship is true for any of the values. SELECT ename FROM emp WHERE sal ANY 800 950 1100 SOME Used in conjunction with a relationship comparison operator. Determines if the specified relationship is true for one or more of the values. SELECT ename FROM emp WHERE sal SOME 800 950 1100 ALL Used in conjunction with a relationship comparison operator. Determines if the specified relationship is true for all of the values. SELECT ename FROM emp WHERE sal ALL 800 950 1100 The Imaginary Dual Table Oracle provides the dual table an imaginary table used largely for allowing you to perform functions. For instance if you want to use a select statement to get the current date you could do so as follows SELECT sysdate FROM dual Table Set Operators OPERATOR DESCRIPTION UNION All unique rows of both queries are returned. UNION ALL All rows of both queries are returned. MINUS Eliminates rows that appear in the second query from the rows returned in the first query. INTERSECT Returns only the rows that are common to both queries. Oracle SQL 161 Of course to do this from XSQL requires that you perform the following xml version page connection demo xmlns xsql urn oracle-xsql xsql query SELECT sysdate AS Date FROM dual xsql query page You can also use the dual table to include parameters in the result set xml version page connection demo xmlns xsql urn oracle-xsql xsql query select @param AS ParamName FROM dual xsql query page Managing Tables The select statement is the tool used for getting data out of the database. The flip side of select is getting data in to the database. Before you

TÀI LIỆU LIÊN QUAN
TỪ KHÓA LIÊN QUAN
Đã 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.