
数据库
帅帅の
Java、帆软、数据库
展开
-
oracle创建表空间及扩展
1,创建表空间并指定用户 -- 创建表空间 CREATE TABLESPACE mytablespace DATAFILE 'C:\ORACLE\ORADATA\ORCL\mytablespace.dbf' SIZE 100M AUTOEXTEND ON NEXT 10M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K; --指定用户 alter user username default tablespace mytablespace; --在创建用户时指定原创 2021-08-13 11:25:04 · 556 阅读 · 0 评论 -
合并一列中的多行数据(合并数据)
sql语法: mysql写法: --默认的逗号分隔 select GROUP_CONCAT(A.title) as citys from tmpcity A; --用空格分隔 select GROUP_CONCAT(A.title SEPARATOR ' ') as citys from tmpcity A; oralce写法: select WM_CONCAT(A.title) as citys from tmpcity A sql server写法: sele原创 2021-03-07 18:07:40 · 648 阅读 · 1 评论