+ -
当前位置:首页 → 问答吧 → sql语句的问题

sql语句的问题

时间:2011-07-11

来源:互联网

开始建了一张表:
create table t (a int not null primary key, b varchar(8000))
insert into t select 1,repeat('a',7000)什么意思啊?

作者: setail   发布时间: 2011-07-11

往t表内插一条记录,字段a=1,字段b='aaa....a'(共7000个)

作者: shine333   发布时间: 2011-07-11

mysql> select repeat('a',3);
+---------------+
| repeat('a',3) |
+---------------+
| aaa |
+---------------+
1 row in set (0.00 sec)

作者: rucypli   发布时间: 2011-07-11