0 оценок0% нашли этот документ полезным (0 голосов)
19 просмотров2 страницы
This script creates the sample tables in the current -- MS SQL Server database and inserts corresponding data. The data is same as the demonstration tables of Oracle. The script drops any tables with the same name so be sure that -- any existing tables with same names do not have any critical data.
This script creates the sample tables in the current -- MS SQL Server database and inserts corresponding data. The data is same as the demonstration tables of Oracle. The script drops any tables with the same name so be sure that -- any existing tables with same names do not have any critical data.
Авторское право:
Attribution Non-Commercial (BY-NC)
Доступные форматы
Скачайте в формате DOC, PDF, TXT или читайте онлайн в Scribd
This script creates the sample tables in the current -- MS SQL Server database and inserts corresponding data. The data is same as the demonstration tables of Oracle. The script drops any tables with the same name so be sure that -- any existing tables with same names do not have any critical data.
Авторское право:
Attribution Non-Commercial (BY-NC)
Доступные форматы
Скачайте в формате DOC, PDF, TXT или читайте онлайн в Scribd
-- This script creates the sample tables in the current
-- MS SQL Server database and inserts corresponding data. -- The data is same as the demonstration tables of Oracle. -- -- USAGE -- Copy/Paste this script in Query Analyzer and select the database -- from the drop down list where you want to create these tables. -- Select EXECUTE from the QUERY menu or simply press F5 to run the script. -- -- WARNING -- The script drops any tables with the same name so be sure that -- any existing tables with same names do not have any critical data. */
DROP TABLE EMP
DROP TABLE DEPT DROP TABLE BONUS DROP TABLE SALGRADE DROP TABLE DUMMY
CREATE TABLE EMP
(EMPNO NUMERIC(4) NOT NULL, ENAME VARCHAR(10), JOB VARCHAR(9), MGR NUMERIC(4), HIREDATE DATETIME, SAL NUMERIC(7, 2), COMM NUMERIC(7, 2), DEPTNO NUMERIC(2))