Chinaunix首页 | 论坛 | 博客

-

  • 博客访问: 164633
  • 博文数量: 48
  • 博客积分: 2000
  • 博客等级: 大尉
  • 技术积分: 490
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-22 18:51
文章分类

全部博文(48)

文章存档

2010年(23)

2009年(25)

我的朋友

分类: Mysql/postgreSQL

2009-10-30 14:40:26

create table user
(
    id int not null,   
    primary key(id)
)
 
LOAD data local infile 'G:/Mysql/user.txt' into table user lines terminated by '\r\n';
 
create procedure stats(out num int)
begin
select count(*) into num from user;
end
 
call stats(@num);
select @num;
阅读(1241) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~