(1)若视图的字段是来自字段表达式或常数,则不允许对此视图执行INSERT、UPDATE操作,允许执行DELETE操作; (2)若视图的字段是来自库函数,则此视图不允许更新; (3)若视图的定义中有GROUP BY子句或聚集函数时,则此视图不允许更新; (4)若视图的定义中有DISTINCT...
分类:
其他好文 时间:
2014-08-10 15:34:50
阅读次数:
967
1.存储过程的语法各式eg:DELIMITER $$CREATE PROCEDURE test_p_add9( p_name VARCHAR(100), p_test VARCHAR(100), p_age INT, OUT o_newid INT)BEGIN INSERT INTO tab...
分类:
数据库 时间:
2014-08-10 10:17:30
阅读次数:
336
Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if ...
分类:
其他好文 时间:
2014-08-09 18:10:28
阅读次数:
178
//sql过滤关键字 public static bool CheckKeyWord(string sWord) { //过滤关键字 string StrKeyWord = @"select|insert|delete|from|count\(|drop tabl...
分类:
数据库 时间:
2014-08-09 13:10:17
阅读次数:
357
方法一:
CREATE TABLE `mysql`.`xiaoma` (`xiaoma1` TEXT NOT NULL );
INSERT INTO `mysql`.`xiaoma` (`xiaoma1` )VALUES ('');
SELECT xiaomaFROM study INTO OUTFILE 'E:/wamp/www/7.php';
----以上同时执行,在数据库: mysq...
分类:
Web程序 时间:
2014-08-09 04:57:27
阅读次数:
373
1 #include 2 #include 3 4 char en[11],fr[11]; 5 int st; 6 struct Tire{ 7 int next[26]; 8 char eng[11]; 9 }node[200005];10 void insert(char...
分类:
其他好文 时间:
2014-08-09 02:27:38
阅读次数:
266
insert into tablerestore select * from tablerestore as of timestamp to_Date('2014-8-8 15:00:00','yyyy-mm-dd hh24:mi:ss') 参数解释:tablerestore 要恢复数据的表后面的时间是恢复截止到某个点的数据...
分类:
数据库 时间:
2014-08-08 21:33:36
阅读次数:
324
Ctrl+N 查找类 Ctrl+Shift+N 查找文件 Ctrl+Alt+L 格式化代码 Ctrl+Alt+O 优化导入的类和包 Alt+Insert 生成代码(如get,set方法,构造函数等) Ctrl+E或者Alt+Shift+C 最近更改的代码 Ctrl+R 替换文本 Ct...
分类:
Web程序 时间:
2014-08-08 18:05:06
阅读次数:
247
如果指针作为形参,要注意是否希望这个指针作为返回值返回。例如,在链表的插入函数中void Insert(Node *head,Node *x);当head == NULL时,我们希望令head = x,此时实际上只改变了head的副本,head并没有改变,因此正确的函数原型应该是void Inser...
分类:
其他好文 时间:
2014-08-08 11:59:15
阅读次数:
200
MySQL数据库优化详解mysql表复制复制表结构+复制表数据mysql> create table t3 like t1;mysql> insert into t3 select * from t1;mysql索引 ...
分类:
数据库 时间:
2014-08-08 08:25:25
阅读次数:
354