1. sql查询语句,按首个字母排列集
直接再加一列吧
(select item,'http://www.xxx.com/'+item+'.HTML' as link from casio) union all (select firstname,'#'+firstname from casio group by firstname) order by item
至于每行6列在程序中用while控制更容易实现
2. plsql 如何设置按英文字母排列对象
1.按照数据排序:
选中需要排序的表格---点排序和筛选---自定义排序----根据下图配置好排序列表。
3. sql 字母数字组合 排序
截取分段排序
orderbyleft(kh,charindex('-',kh)-1)
,convert(int,substring(kh,charindex('-',kh)+1,charindex('-',kh,charindex('-',kh)+1)-charindex('-',kh)-1))
,right(kh,len(kh)-charindex('-',kh,charindex('-',kh)+1))
4. SQL 按照字母排列
你本来就是字母问题,所以用order
by
name
就行了根据名称排列,其name系统默认就是按字母排列,当然字母也是首先按第一个字母排列
所以:
select
*
from
table
order
by
name;
5. access如何用sql语句按首字母排序
和你sql排序规则有关系,你重新设置一下sql的排序规则就可以了,(其排序规则为
Chinese_PRC)
--按拼音
ALTER
TABLE
tableName
ALTER
COLUMN
colName
nvarchar(100)
COLLATE
Chinese_PRC_CI_AS
select
*from
tableName
order
by
colName
--按笔画
ALTER
TABLE
tableName
ALTER
COLUMN
colName
nvarchar(100)
COLLATE
Chinese_PRC_Stroke_CI_AS
select
*from
tableName
order
by
colName
6. SQL中查询到的常量按照字母排序怎么做
还有一种是order by这种你可以去度娘上搜一搜怎么用的
7. sql 排序问题(英文国家名称按照首字母a-z排序)
是要建立一个内容排过序的物理表吗?使用select into就行,语句:select * into 新表名 from 原表名 order by 国家名字。 以后使用新表就行。如果必需要原表名,drop tabel 原表, 再将新表名改成原表名: sp_rename '新表名','原表名' 。注意,表名用单引号引,两表之间有逗号.