C Primer Plus(第五版)中文版好还是第六版好?
不懂为什么别人推荐用第五版而不是第六版
更新时间:2023-06-08 14:06
最满意答案
declare num number; begin select TO_NUMBER(substr('d+1',2)) into num from dual; dbms_output.put_line(num); --dbms_output.put_line('明天'||replace(to_char(add_months(to_date(sysdate,'yyyymmdd'),0)+ num ),'-','')); end; 声明一个变量,赋值再转换下就可以了
其他回答
select t1.b || '-' || t2.b from (select a, b from a where d = 1) t1, (select a, replace(wm_concat(c), ',', '-') b from a start with d = 1 connect by b = prior c group by a) t2 where t1.a = t2.a
相关问答
更多-
python中字符串拼接[2022-11-17]
if __name__ == '__main__': result ='' data = ['num1', 'num2', 'num3', 'num4'] for i in range(len(data)): result += 'OR' + '\''+data[i] +'\'' print(result) -
js中如何拼接字符串[2022-05-23]
JS中有三种字符串连接方式: 第一种方法 , 用连接符“+”把要连接的字符串连起来: str="a"; str+="b"; 第二种方法, 以数组作为中介用 join 连接字符串: var arr=new Array(); arr.push(a); arr.push(b);var str=arr.join(""); 第三种方法, 利用对象属性来连接字符串: function stringConnect(){ this._str_=new Array(); } stringConnect.prototype.a ... -
Oracle 截取字符串问题[2019-05-15]
假设你要查询的电话号码变量为 v_data select count(t.*) from M_USER_NUMBER t where t.usephone like '%'||v_data||"%' 如果不是变量 是直接的号码的话 select count(t.*) from M_USER_NUMBER t where t.usephone like '电话号码' count(t.*) = 0 不存在 >0 存在 -
Oracle 写存储过程[2023-03-09]
create or replace function getStrLength(str varchar) return number is begin return length(str); end; ------- select getStrLength('Oracle数据库') from dual; 或者 直接可用 select length('Oracle数据库') from dual; -
oracle 数据存储 字符串拼接[2022-12-13]
declare num number; begin select TO_NUMBER(substr('d+1',2)) into num from dual; dbms_output.put_line(num); --dbms_output.put_line('明天'||replace(to_char(add_months(to_date(sysdate,'yyyymmdd'),0)+ num ),'-','')); end; 声明一个变量,赋值再转换下就可以了 -
Oracle字符串的拆分和拼接[2022-04-20]
这是json串,和数据库没有关系,如果纯粹的字符串拼接用 || -
将oracle 查询结果列拼接为字符串[2023-07-03]
create table test (id int, name varchar(10) ) insert into test values (1,'a') insert into test values (1,'b') insert into test values (1,'c') insert into test values (2,'a') insert into test values (2,'b') insert into test values (3,'a') insert into test v ... -
oracle拼接sql字符串,怎样防止sql注入[2022-04-13]
用replace函数替换 把 ' 替换成 空 -
oracle里面怎么分割字符串[2023-03-22]
(1)定义split_type类型: CREATE OR REPLACE TYPE split_type IS TABLE OF VARCHAR2 (4000) / (2)定义split函数: CREATE OR REPLACE FUNCTION split (p_str IN VARCHAR2, p_delimiter IN VARCHAR2) RETURN split_type IS j INT := 0; i INT := 1; len INT := 0; len1 INT := 0; str VAR ... -
我想知道SHELL命令下字符串拼接[2023-09-06]
=号两边不能有空格 执行命令需要用反引号括起来 `grep -c "" 3s.txt`