kythuat
  • Export và Import table big data dùng CMD
  • Export dùng MSSM và Import bằng CMD (SQL)
  • Export và Import table big data SQL dùng CMD
  • Fix Data hay table SQL bị lỗi suspect
  • Xử lý dữ liệu Sivip.Web
  • Code SQL check
  • Dò data và Fix data SQL Suspect
  • Code lấy info Sivip.Web
  • Tải SQL Server 2021 full
  • Kiểm tra Data nào chiếm nhiều CPU
  • Xóa toàn bộ rác Windows
  • Code check số dòng Sivip theo đơn vị
  • Code SQL
  • Copy CTGS + CDTK
  • Code SQL tính dung lượng table trong SQL
  • Update mã CCDC cộng thêm mã đơn vị cơ sở
  • Insert xdmct từ dmdvcs
  • Check giá thành sản phẩm
  • Backup và restore IIS
  • Xóa số liệu Sivip Online
  • Check giá thành sản phẩm
  • Odoo
Powered by GitBook
On this page

Was this helpful?

Copy CTGS + CDTK

Copy CTGS

select * into #ctgs from zcctgs where ma_Dvcs = '9999' and nam = '2020'
update #ctgs set ma_dvcs = '0001', tien = 0
delete zcctgs where ma_dvcs = '0001' and nam = '2020'
insert into zcctgs select * from #ctgs

'0001' là mã đơn vị cần copy

Copy cdtk theo mã đơn vị

select * into #f from cdtk where nam = 2014 and ma_dvcs='CNDT02' and tk not in (select tk from cdtk where nam = 2022 and ma_dvcs='CNDT02') 
update #f set nam = 2022 insert into cdtk select * from #f

Copy cdtk

select * into #e from cdtk where nam = 2014 and tk not in (select tk from cdtk where nam = 2020)
update #e set nam = 2020 
insert into cdtk select * from #e

PreviousCode SQLNextCode SQL tính dung lượng table trong SQL

Last updated 3 years ago

Was this helpful?