日期:2014-05-18  浏览次数:20448 次

怎样在数据库中存储这样的格式
我用server   2000,想在一条记录的一个字段存储带有换行的字符串,如将下列的三行一起存入一条记录的一个字段中:
a;
b;
c;

怎么做?

------解决方案--------------------
一样的用啊!
create table tb(a varchar(100))
insert tb select '1;
2;
3;
'
select * from tb

drop table tb

--结果
a
--------------------------------
1;
2;
3;

(所影响的行数为 1 行)