Oracle case函數(shù)使用介紹建站知識(shí)
導(dǎo)讀:1建站知識(shí)這篇文章主要通過實(shí)例簡(jiǎn)要介紹case函數(shù)的用法,學(xué)習(xí)oracle的朋友可以參考下營(yíng)銷型網(wǎng)站建設(shè)百度seo網(wǎng)站優(yōu)化。
1.創(chuàng)建測(cè)試表:
復(fù)制代碼 代碼如下:
DROP SEQUENCE student_sequence;CREATE SEQUENCE student_sequence START WITH 10000 INCREMENT BY 1;
DROP TAB網(wǎng)站seo優(yōu)化軟件LE students;CREATE TABLE students ( id NUMBER(5) PRIMARY KEY, first_name VARCHAR2(20), last_name VARCHAR2(20), major VARCHAR2(30), current_credits NUMBER(3), grade varchar2(2));
INSERT INTO students (id, first_name, last_name, major, current_credits,grade) VALUES (student_sequence.NEXTVAL, 'Scott', 'Smith', 'Computer Science', 98,null);
INSERT INTO students (id, first_name, last_name, major, current_credits,grade) VALUES (student_sequence.NEXTVAL, 'Margaret', 'Mason', 'History', 88,null);
INSERT INTO students (id, first_name, last_name, major, current_credits,grade) VALUES (student_sequence.NEXTVAL, 'Joanne', 'Junebug', 'Computer Science', 75,null);
INSERT INTO students (id, first_name, last_name, major, current_credits,grade) VALUES (student_sequence.NEXTVAL, 'Manish', 'Murgratroid', 'Economics', 66,null);
commit;
2.查看相應(yīng)數(shù)據(jù)
復(fù)制代碼 代碼如下:
SQL> select * from students;
ID FIRST_NAME &nseo網(wǎng)站優(yōu)化bsp; LAST_NAME MAJOR CURRENT_CREDITS GR---------- -------------------- -------------------- ------------------------------ --------------- -- 10000 Scott Smith Computer Science 98 10001 Margaret Mason History 88 10002 Joanne Junebug Computer Science 75 10003 Manish Murgratroid Economics 66
聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-05-23 ,文章Oracle case函數(shù)使用介紹建站知識(shí)主要講述函數(shù),標(biāo)簽,Oracle case函數(shù)使用介紹建站知識(shí)1網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_5597.html
為你推薦與Oracle case函數(shù)使用介紹建站知識(shí)相關(guān)的文章
-
通王TWCMS 2.0.3網(wǎng)站模板程序下載
(126)人喜歡 2024-01-15 -
Windows官方原版在哪里下載
(175)人喜歡 2024-01-15 -
WordPress網(wǎng)站模板發(fā)帖標(biāo)題顏色設(shè)置
(131)人喜歡 2024-01-07 -
修改discuz論壇帖子標(biāo)題80字符的長(zhǎng)度限制
(249)人喜歡 2024-01-07 -
wordpress程序調(diào)用不帶超鏈接的Tag標(biāo)簽
(234)人喜歡 2024-01-05 -
網(wǎng)站在不同時(shí)期需調(diào)整內(nèi)容更新的方向
(112)人喜歡 2023-08-12