create_sybase.sql
来自「OpenJMS是一个开源的Java Message Service API 1.」· SQL 代码 · 共 100 行
SQL
100 行
drop table system_datagocreate table system_data ( id int not null, version varchar(20) not null, creationDate datetime not null)gocreate unique index system_data_pk on system_data(id)goalter table system_data lock datarowsgodrop table seedsgocreate table seeds ( name varchar(20) not null, seed numeric(28) not null)gocreate unique index seeds_pk on seeds(name)goalter table seeds lock datarowsgodrop table destinationsgocreate table destinations ( name varchar(255) not null, isQueue int not null, destinationId numeric(28) not null)gocreate unique index destinations_pk on destinations(name)goalter table destinations lock datarowsgodrop table messagesgocreate table messages ( messageId varchar(64) not null, destinationId numeric(28) not null, priority int, createTime numeric(28) not null, expiryTime numeric(28), processed int, messageBlob image not null)gocreate index messages_pk on messages(messageId)goalter table messages lock datarowsgodrop table message_handlesgocreate table message_handles ( messageId varchar(64) not null, destinationId numeric(28) not null, consumerId numeric(28) NOT NULL, priority int, acceptedTime numeric(28) not null, sequenceNumber numeric(28), expiryTime numeric(28), delivered int)gocreate index message_handles_pk on message_handles(messageId)goalter table message_handles lock datarowsgodrop table consumersgocreate table consumers ( name varchar(255) not null, destinationId numeric(28) not null, consumerId numeric(28) not null, created numeric(28) not null)gocreate unique index consumers_pk on consumers(name, destinationId)goalter table consumers lock datarowsgodrop table usersgocreate table users ( username varchar(50) not null, password varchar(50) not null)gocreate unique index users_pk on users(username)goalter table users lock datarowsgo
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?