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 //顺序