建表前如何判断表是否存在呢,因为table是不支持replace的。下面的sql能帮到你。create前先判断表是否存在。例如,如果存在则drop掉那个表。当然你也可以定义自己的操作。 declare
v_cnt Number;
begin
select count(*) into v_cnt from user_tables where upper(table_name) ...
分类:
数据库 时间:
2014-06-08 15:42:00
阅读次数:
329
Oracle数据库默认情况下,会以DD-MON-YY的形式显示日期,其中DD是天数,MON是月份的前三个字母(大写),而YY是年份的最后两位。数据库实际上会为年份存储4位数字,但是默认情况下只会显示最后两位。
一个简单的语句:
SELECT TO_DATE('21-MAY-2014') FROM dual;
引发ORA-01843:无效的月份!...
分类:
其他好文 时间:
2014-06-08 14:40:51
阅读次数:
238
/** linux/tools/build.c** Copyright (C) 1991,
1992 Linus Torvalds*//** This file builds a disk-image from three different
files:** - bootsect: max 510...
分类:
其他好文 时间:
2014-06-08 08:04:19
阅读次数:
344
之前美丽湾项目是用赢家写的替换方法,替换数据时,无法深度遍历,这里修改一下方法: 1
function tempExt(h, data) { 2 return h.replace(/\{(.*?)\}/g, function (str, m) {
3 ...
分类:
其他好文 时间:
2014-06-07 23:05:37
阅读次数:
231
using System;using System.Collections.Generic;using
System.Linq;using System.Web;using System.Text;using System.Data.SqlClient;using
System.Data;using...
分类:
数据库 时间:
2014-06-07 21:59:54
阅读次数:
335
题目链接 Given a m x n grid filled with non-negative
numbers, find a path from top left to bottom right which minimizes the sum of
all numbers along its p...
分类:
其他好文 时间:
2014-06-07 21:59:08
阅读次数:
344
seq(from = 1, to = 1, by = ((to - from)/(length.out
- 1)), length.out = NULL, along.with = NULL,
...)举例----------Examples----------seq(0, 1, length.o....
分类:
其他好文 时间:
2014-06-07 21:47:17
阅读次数:
232
PDO: php data object 数据库访问抽象层 基于驱动: 1、安装扩展
php_pdo.dll 2、安装驱动 php_pdo_mysql.dlllinux
编译时参数:--with-pdo=mysql=/usr/local/mysql三个类: PDO类, 数据库连接有关(连接、执行sq...
分类:
其他好文 时间:
2014-06-07 21:18:20
阅读次数:
221
Recently, I’m studying Fourier Transform by
watching the lectures from Stanford University. I felt that I already forget the
math basics that I’ve lea...
分类:
其他好文 时间:
2014-06-07 20:57:16
阅读次数:
506
Given a linked list, remove thenthnode from the
end of list and return its head.For example, Given linked list:
1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-06-07 16:54:26
阅读次数:
221