Skip to main content
Question

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

  • Nov 22, 2021 3:16 AM UTC
  • 2 replies
  • 15 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
  • Nov 22, 2021 3:29 AM UTC

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
  • Nov 22, 2021 7:52 AM UTC

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.