注册 登录
编程论坛 SQL Server论坛

[求助]符號插入

guochen3 发布于 2007-02-10 18:49, 632 次点击

各位:
大家好!小弟不才,請教大家一個問題 :如何在SQL中插入一個特殊符號,(在一個三角形中放一個圓),有沒有辦法插入呀!我想了幾個辦法都不行.謝謝你們!

3 回复
#2
bygg2007-02-10 19:31
只要你能够打出来就可以入进去.
#3
棉花糖ONE2007-02-10 19:48
没见过有这种要求的
#4
accpfriend2007-02-12 09:15

一般数据库是最好不要带用三角星之类的符号,你如何要做实现那种效果的话,最好和视图查出数据转换成三角星之类的符号,我想你是在做类似论坛 的数据操作,我也做过,这是我以前项目中用过的
create view bbsUser_view as
select 昵称=Uname,星级=case
when Upoint<10 then ''
when Upoint between 10 and 101 then '★'
when Upoint between 102 and 501 then '★★'
when Upoint between 502 and 1001 then '★★★'
when Upoint between 1002 and 2001 then '★★★★'
when Upoint between 2002 and 5001 then '★★★★★'
else '★★★★★★'
end
,积分=Upoint from bbsuser
go
1