复制代码 代码如下:
---涂聚文 Geovin Du
DECLARE @myid uniqueidentifier
SET @myid = NEWID()
SELECT CONVERT(char(255), @myid) AS 'char';
GO
--涂聚文 Geovin Du
declare @allstring char(255),@AreaUid Uniqueidentifier
set @AreaUid='37A1DA94-4AC6-4ED0-B96F-BA3FE6AEACC8'
set @allstring= cast(@AreaUid as char(255))
select @allstring
--涂聚文 Geovin Du
declare @allstring char(255),@AreaUid Uniqueidentifier,@s varchar(200)
set @AreaUid='37A1DA94-4AC6-4ED0-B96F-BA3FE6AEACC8'
set @allstring= CONVERT(char(255),@AreaUid)
set @s=cast(@allstring as varchar(200))
select @allstring,@s
--涂聚文 Geovin Du
declare @allstring char(255),@AreaUid Uniqueidentifier,@s varchar(200)
set @AreaUid='37A1DA94-4AC6-4ED0-B96F-BA3FE6AEACC8'
select @s=CONVERT(varchar(200),cast(@AreaUid as char(225)))
select @s

更多相关文章

  1. Android中,把XML文件转换成Object对象的方法
  2. Android(安卓)-- Android(安卓)JUint 与 Sqlite
  3. android 当系统存在多个Launcher时,如何设置开机自动进入默认的La
  4. android Uri获取真实路径转换成File的方法
  5. Android(安卓)SQLiteDatabase的使用
  6. android 通话记录次数
  7. Android(安卓)SQLiteDatabase的使用
  8. android实现关键字搜索功能
  9. 我的android 第14天 - 使用SQLiteDatabase操作SQLite数据库

随机推荐

  1. php中的array_slice函数怎么用
  2. php中的similar_text函数怎么用
  3. php中的array_shift函数怎么用
  4. php中的substr_replace函数怎么用
  5. php中的array_merge函数怎么用
  6. php中的substr_count函数怎么用
  7. php中的chunk_split函数怎么用
  8. php中的strnatcasecmp函数怎么用
  9. php中的strnatcmp函数怎么用
  10. php rtrim函数怎么用