PHP头条
热点:

MySQL (C API)VC实例及代码下载 (1)(2)



10.SQL语句技巧

1、一个SQL语句的问题:行列转换

select * from v_temp

上面的视图结果如下:

user_name role_name

-------------------------

系统管理员 管理员

feng 管理员

feng 一般用户

test 一般用户

想把结果变成这样:

user_name role_name

---------------------------

系统管理员 管理员

feng 管理员,一般用户

test 一般用户

===================

create table a_test(name varchar(20),role2 varchar(20))

insert into a_test values('李','管理

www.phpzy.comtrue/php/15064.htmlTechArticleMySQL (C API)VC实例及代码下载 (1)(2) 10.SQL语句技巧 1、一个SQL语句的问题:行列转换 select * from v_temp 上面的视图结果如下: user_name role_name ------------------------- 系统管理员 管理员 feng 管理...

相关文章

    暂无相关文章
相关频道:

PHP之友评论

今天推荐