【发布时间】:2017-10-05 23:47:28
【问题描述】:
在 postgresql 中更新列时,我们可以将其值重置为 DEFAULT
UPDATE table SET column = DEFAULT
DBIx::Class 中是否有类似物?就像这样:
$schame->result_set( 'table' )->update({ column => DEFAULT })
【问题讨论】:
标签: perl dbix-class
在 postgresql 中更新列时,我们可以将其值重置为 DEFAULT
UPDATE table SET column = DEFAULT
DBIx::Class 中是否有类似物?就像这样:
$schame->result_set( 'table' )->update({ column => DEFAULT })
【问题讨论】:
标签: perl dbix-class
感谢ilmari。我需要 ref 来使用文字 SQL:
$schame->result_set( 'table' )->update({ column => \'DEFAULT' })
【讨论】: