Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2325965
  • 博文数量: 473
  • 博客积分: 12252
  • 博客等级: 上将
  • 技术积分: 4307
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-12 10:02
文章分类

全部博文(473)

文章存档

2012年(8)

2011年(63)

2010年(73)

2009年(231)

2008年(98)

分类: Mysql/postgreSQL

2008-04-24 13:29:00

mysql> use mylibrary
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

mysql> set @a=0;
Query OK, 0 rows affected (0.00 sec)

mysql> select count(*) into @a from titles;
Query OK, 1 row affected (0.05 sec)

mysql> select @a;
+------+
| @a   |
+------+
| 67   |
+------+
1 row in set (0.00 sec)

mysql> select count(*) from titles;
+----------+
| count(*) |
+----------+
|       67 |
+----------+
1 row in set (0.00 sec)

mysql>

阅读(678) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~