--测试代码: declare -- Local variables here i integer; begin -- Test statements here dbms_output.put_line(to_char(sysdate,'yyyy-MM-dd HH24:MI:SS')); DBMS_ ...
分类:
数据库 时间:
2017-09-01 15:04:11
阅读次数:
248
CREATE PROCEDURE [dbo].[生成表结构数据库文档]ASBEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUN ...
分类:
数据库 时间:
2017-08-29 11:09:17
阅读次数:
191
参考官方文档: https://docs.microsoft.com/zh-cn/sql/t-sql/statements/create-partition-function-transact-sql 默认是Left LEFT:第一个值属于第一个表,对应<= RIGTH: 第一个值属于第二个表,对应 ...
分类:
数据库 时间:
2017-08-27 00:11:17
阅读次数:
261
1. 异常错误处理 在PL/pgSQL函数中,如果没有异常捕获,函数会在发生错误时直接退出,与其相关的事物也会随之回滚。我们可以通过使用带有EXCEPTION子句的BEGIN块来捕获异常并使其从中恢复。见如下声明形式: 如果没有错误发生,只有BEGIN块中的statements会被正常执行,然而一旦 ...
分类:
数据库 时间:
2017-08-22 13:20:33
阅读次数:
431
1 Categories of query statements 2 Logical query processing 3 ...
分类:
数据库 时间:
2017-08-20 12:42:12
阅读次数:
170
原文地址:http://www.cnblogs.com/ziysong/p/4761531.html 本文讲述了如何正确的使用prepared statements。为什么它可以让你的应用程序运行的更快,和同样的让数据库操作变的更快。 为什么Prepared Statements非常重要?如何正确的 ...
分类:
其他好文 时间:
2017-08-19 18:49:46
阅读次数:
147
主要涉及: 变量:涉及定义、变量范围 操作符:+ - * / 括号等运算符 声明和表达式 控制流:条件控制判断 the decision-making statements (if-then, if-then-else, switch), the looping statements (for, w ...
分类:
编程语言 时间:
2017-08-12 12:38:01
阅读次数:
145
Statements Alice and Bob play the following game. They choose a number N to play with. The rules are as follows: - They write each number from 1 to N ...
分类:
其他好文 时间:
2017-08-09 13:09:24
阅读次数:
143
Statements A sequence of positive and non-zero integers called palindromic if it can be read the same forward and backward, for example: 15 2 6 4 6 2 ...
分类:
其他好文 时间:
2017-08-09 13:02:42
阅读次数:
176
Statements This is the first day for you at your new job and your boss asks you to copy some files from one computer to other computers in an informat ...
分类:
其他好文 时间:
2017-08-09 12:57:01
阅读次数:
147