使用 DBIx::Class 更新时如何将列值重置为 DEFAULT?
How to reset column value to DEFAULT when updating it with DBIx::Class?
更新 postgresql 中的列时,我们可以将其值重置为 DEFAULT
UPDATE table SET column = DEFAULT
DBIx::Class中有类似物吗?就像这样:
$schame->result_set( 'table' )->update({ column => DEFAULT })
感谢 ilmari。我需要 ref
才能使用文字 SQL:
$schame->result_set( 'table' )->update({ column => \'DEFAULT' })
更新 postgresql 中的列时,我们可以将其值重置为 DEFAULT
UPDATE table SET column = DEFAULT
DBIx::Class中有类似物吗?就像这样:
$schame->result_set( 'table' )->update({ column => DEFAULT })
感谢 ilmari。我需要 ref
才能使用文字 SQL:
$schame->result_set( 'table' )->update({ column => \'DEFAULT' })