使用ajax的基本引用、数据库join on使用

using System.Text;
using System.Collections.Generic;
using System.Linq;

using system.text用于使用stringbuilder

using system.collecctions.generic用于使用list等泛型集合

using system.linq用于使用linq的相关操作

 

 

join on使用:

 select users.ids,nation.nationname from users join nation on users.nation=nation.nationcode
select * from users join nation on users.nation=nation.nationcode

数据库顺序、倒序查询:

select * from users order by ids desc //倒序
select users.username from users order by ids //顺序

 

posted @ 2017-06-05 11:47  游称  阅读(221)  评论(0编辑  收藏  举报