RT
最好能给点示范,谢谢!

解决方案 »

  1.   

    INSERT INTO table1(a)
           SELECT b
           FROM table2
      

  2.   

    可以用cast做轉換,如
    select cast(field as int) from table
      

  3.   

    create table tb1(f1 varbinary)
    gocreate table tb2(f2 varbinary)
    goinsert into tb1
    select 10011110001010
    union all
    select 0101110101101
    union all
    select 011100100100111insert into tb2
    select f1 from tb1select * from tb2
    drop table tb1
    drop table tb2----------------
    0x0E
    0x0C
    0x0E
      

  4.   

    我现在是在有个字段中用varbinary存的十六进制字符,现在如何将其取出来,我只听说过可以用流方式,不过我看了一下,好有用的这个FileStream这种,不过这种要有四个条件,
    必须要这样:好像是FileStream.read(文件名,其它参数)如果我是数据库的字段的内容该如何取出来呢