1、创建Mysql触发器: 语法: CREATE TRIGGER trigger_name
trigger_time trigger_event ON tbl_name FOR EACH ROW BEGIN trigger_stmt //语句块
END; CR...
分类:
数据库 时间:
2014-05-09 10:52:24
阅读次数:
478
语法:Trigger on an INSERT, UPDATE, or DELETE
statement to a table or view (DML Trigger)CREATE TRIGGER [ schema_name .
]trigger_name ON { table | view } ...
分类:
数据库 时间:
2014-05-09 05:18:18
阅读次数:
483
DataGridView 绑定 List 不会自动更新正确方式是将 List设置为
BindingList 即可 (双向绑定)
1 表和列的命名规则
a. 必须以字母开头
b. 长度不能超过30个字符
c. 不能使用Oracle的保留字(关键字)
d. 只能使用如下字符A-Z,a-z,0-9,$,#
2 创建表
语法:create table 表名 (列名 数据类型,列名 数据类型,...)
SQL> create table Student (StuNo number(10),Gender ch...
分类:
其他好文 时间:
2014-05-09 02:31:05
阅读次数:
262
ZOJ Problem Set - 3780
Paint the Grid Again
Time Limit: 2 Seconds Memory Limit: 65536 KB
Leo has a grid with N × N cells. He wants to paint each cell with a specific color (either black ...
分类:
其他好文 时间:
2014-05-09 02:00:35
阅读次数:
506
pthread_create()
创建线程,pthread_join()让线程一直运行下去。链接时要加上-lpthread选项。pthread_create中, 第三个参数为线程函数,定义如下:
void * heartbeat_thread() { ... }下面是main.c :#i...
分类:
编程语言 时间:
2014-05-08 23:55:54
阅读次数:
486
我们知道在oracle 中复制表数据的方式是使用create table table_name
as select * from table_name而在sql server 中是不能这么使用的语句如下:select * into table_name
from table_name;而在 mys....
分类:
数据库 时间:
2014-05-08 23:52:36
阅读次数:
549
在使用JS 发送ajax到django后台的时候,可能会出现中文乱码问题解决方案:
所有的HTMl 和py文件都使用utf-8编码,在创建数据库的时候指定使用utf8 :create database database_name DEFAULT
CHARACTER SET utf8; 在se...
分类:
其他好文 时间:
2014-05-08 23:39:08
阅读次数:
431
Create View V_CouponTypeasSELECT CouponTypeId,
CouponTypeNameFROM Gas_CN_Trade_B2C.dbo.CouponTypeWHERE (IsDeleted = 0)
分类:
其他好文 时间:
2014-05-08 23:04:27
阅读次数:
332
最近学习Php,主要是为了与mysql数据库进行交互,想做一个BS的架构出来,最近的一点心得:我用的是php的集成环境WampServer,代码编辑器用的是EditPlus.下面是一些常用的sql语句创建数据库:
CREATE DATABASE 数据库名;使数据库变成当前数据库: us...
分类:
数据库 时间:
2014-05-08 14:57:52
阅读次数:
425