下面的代碼 CREATE PROCEDURE create_all_views()
LANGUAGE SQL
--MODIFIES SQL DATA
BEGIN ATOMIC
FOR select view_name from views_to_create DO
CREATE VIEW view_name AS SELECT * FROM view_name || '_
create view PUBLISHER_VC as
SELECT PB_NAME, PB_ZIPCODE, PB_PHONE_NUMBER
FROM PUBLISHER_4_14 pub
INNER JOIN BOOKS_4_14 boo
where pub.PBID=boo.PBID and BK_LIST_PRICE>100;
我有兩個表,分別叫做PUBLISHER_4
CREATE TABLE Booking (
Name varchar2(30) NOT NULL,
R_date date NOT NULL,
D_address varchar2(30) NOT NULL,
Email_id varchar2(30) NOT NULL,
No_of_cars int NOT NULL,
Contact_no varchar2(15) NOT NULL
我想創建一個CREATE AS SELECT表,其中我想通過NULL值到col3。 的 main 結構: SQL> desc main
Name Null? Type
----------------------------------------- -------- ----------------------------
col1 NOT NULL N