摘要:
CREATE OR REPLACE FUNCTION isnumeric(str in VARCHAR2) return NUMBERisbegin if str is null then return 0; else -- if rege... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(406)
评论(0)
推荐(0)
摘要:
SQL Server -- 创建本地临时表.CREATE TABLE #temp_table_local ( id INT, value VARCHAR(10));go-- 创建全局临时表.CREATE TABLE ##temp_table_g... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(186)
评论(0)
推荐(0)
摘要:
//原SQL版拼SQL语句写法FsWhere := ' and cast(a.bbtime as DateTime) between ' + QuotedStr(FormatDateTime('YYYY-MM-DD', edtBBtime.DateTime)... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(272)
评论(0)
推荐(0)
摘要:
SQL Server 数据类型Oracle 数据类型bigintNUMBER(19,0)binary(1-2000)RAW(1-2000)binary(2001-8000)BLOBbitNUMBER(1)char(1-2000)CHAR(1-2000)char... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(1198)
评论(0)
推荐(0)
摘要:
原SQL写法: //生成表结构// sErr := OpenSql('SELECT CAST(0 AS INTEGER) AS iStep, CAST('''' AS VARCHAR(40)) AS StepName, CAST('''' AS VARCHAR... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(235)
评论(0)
推荐(0)
摘要:
SQL中Left对应Oracle Substr substr函数格式 (俗称:字符截取函数) 格式1: substr(string string, int a, int b); 格式2:substr(string string, int a) ;解释:... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(221)
评论(0)
推荐(0)
摘要:
Oracle数据库中如果执行了误操作,比如update 某表某字段,但是没有加where 条件,会导致全表字段被修改,又或者误删除了某表所有记录,我们可以通过Oracle的的热备还原到指定的某一个时间点 --查询某一时间戳之前的数据select * from ... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(440)
评论(0)
推荐(0)
摘要:
--创建两张测试表create table table1( id varchar2(10) , val varchar2(20) ); create table table2( id varchar2(10), val varchar2(20) )... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(2917)
评论(0)
推荐(0)
摘要:
SQL中正常执行的SQL语句: update b_dispatch set ReferenceNum = ( case when ISNULL(fno,' ')=' ' then fno when fno='〔〕' then '' else replace(... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(2454)
评论(0)
推荐(0)
摘要:
Oracle中: Select to_char(sysdate,'ss') from dual--取当前时间秒部分 Select to_char(sysdate,'mi') from dual--取当前时间分钟部分 Select to_char(sysdate... 阅读全文
posted @ 2022-10-04 00:15
IT情深
阅读(241)
评论(0)
推荐(0)

浙公网安备 33010602011771号