随笔分类 -  数据库

摘要:1、创建存储过程 CREATE OR REPLACE PROCEDURE TEST_PROC(STR VARCHAR) AS BEGIN DECLARE STR1 VARCHAR2(100); STR2 VARCHAR2(100); BEGIN STR2:='SELECT '''||STR||''' 阅读全文
posted @ 2022-08-30 14:33 竹心_兰君 阅读(6451) 评论(0) 推荐(0)
摘要:--思路1:先创建一个递增序列,保证对应行号下有对应条行数据,--统计需分割字符串中个数,关联递增序列,实现1行转多行--获取位置,截取字符串--思路2:xml处理,符号替换,创建函数查询--思路3:递归查询1 --oracle,分割逗号 2 --创建表 3 CREATE TABLE SPLIT_R 阅读全文
posted @ 2021-01-27 10:41 竹心_兰君 阅读(297) 评论(0) 推荐(0)
摘要:1 alter database rfdb add filegroup rf_test1 2 alter database rfdb add filegroup rf_test2 3 alter database rfdb add filegroup rf_test3 4 5 alter database rfdb add file(name='rf_test1',filename=... 阅读全文
posted @ 2019-05-20 17:18 竹心_兰君 阅读(178) 评论(0) 推荐(0)
摘要:创建表: create table stu_info( id int identity(1,1) not null primary key clustered, name char(10) not null, score numeric not null ) 新建主键: create table stu_info( id int identity(1,1) not null, name ... 阅读全文
posted @ 2019-04-18 10:29 竹心_兰君 阅读(326) 评论(0) 推荐(0)