将varchar数据插入varbinary

时间:2013-02-18 17:42:21

标签: sql-server

我有两张桌子(前):

OPERATION_TYPE

  ROWID(int, not null)
  ID(PK, varchar(15), not null)
  DESCRIPTION(varchar(40),null) ...

OPER_TYPE_BINARY

  ROWID(int,not null)
  OPERATION_TYPE_ID(PK, FK, varchar(15), not null)
  TYPE(PK, char(1), not null)
  BITS(image, null)
  BITS_LENGTH(int, not null)

如何从OPER_TYPE_BINARY插入OPERATION_TYPE

  • OPERATION_TYPE_ID = ID
  • TYPE = 'D'
    BITS = DESCRIPTION
    BITS_LENGTH =

0 个答案:

没有答案