ORACLE笔记 sql语句 (转)
--================================================ --==================================== 一.sql语句 --================================================ 1.增加主键 alter table TABLE_NAME add constraint...
View Articlemysql 数据库学习(存储过程)
1。存储过程实现:引用:20.2.1. CREATE PROCEDURE和CREATE FUNCTION(mysql在线文档)--test.sqlDELIMITER $$drop procedure if exists test.sproc $$create procedure sproc(out param1 int)begin select count(*) into param1...
View Articlemysql 数据库学习(触发器)
引用:http://bbs.mysql.cn/thread-9135-1-2.html 引用:21. 触发程序delimiter //create trigger a_bibefore insert on afor each row Begin if new.s2=0 then if(new.s3=1) then insert into b(s2)...
View Articlemysql 游标使用
请使用 mysql 1.5 或以上version;测试表 level ;create table test.level (name varchar(20));再 insert 些数据 ; /*初始化*/ drop procedure if exists useCursor // /*建立 存储过程 create */ CREATE PROCEDURE useCursor()...
View Articlemysql 权限控制笔记
MySQL 存取控制包含2个阶段: 阶段1:服务器检查是否允许你连接。 阶段2:假定你能连接,服务器检查你发出的每个请求。看你是否有足够的权限实施它。例如,如果你从数据库表中选择(select)行或从数据库删除表,服务器确定你对表有SELECT权限或对数据库有DROP权限。 参考 : 5.8. MySQL用户账户管理 1.权限查看mysql> show grants for...
View Article数据库表地址数据(中国地区)
摘要: 为方便项目使用,特留!表结构:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> CREATE TABLE `location` ( `id` bigint(20) NOT NULL auto_increment, `name`...
View Article
More Pages to Explore .....