Skip to main content
Question

Does the copy_table function automatically commit a transaction to the original table?

  • November 22, 2021
  • 2 replies
  • 7 views

HyeontaeJu
Forum|alt.badge.img+2

Does the copy_table('original','duplicate') function automatically commit a transaction to the original table?

2 replies

SruthiA
Forum|alt.badge.img+1
  • Participating Frequently
  • November 22, 2021

Once you run copy_table, original and duplicate tables are treated seperately. so when you commit a transaction on the duplicate table, it will not change anything in original table.


mosheg
Forum|alt.badge.img+2
  • Participating Frequently
  • November 22, 2021

In addition, the copy_table statement initiate a COMMIT to any previous statement in that session even if the session AUTOCOMMIT is set to OFF.