dataimportMem.sql 632 B

1234567891011121314151617181920
  1. select count(1) from dataimport
  2. select max(cast(id as int)) from dataimport
  3. select count(1) from mem_Product
  4. exec createEntity 'mem_terminaldoc'
  5. alter table mem_RoleRelatePermission drop column ID1
  6. alter table mem_RoleRelatePermission add ID1 int identity(1,1)
  7. SET IDENTITY_INSERT mem_RoleRelatePermission ON
  8. update mem_RoleRelatePermission set ID1= id
  9. select count(1) from dataimport a where exists (select b.DataId from dataimport_mem b where b.DataId = DataId )
  10. select count(distinct a.Id) from dataimport a left join dataimport_mem b on b.DataId = a.DataId
  11. where b.dataid is not null
  12. select * from dataimport where