![](/img/trans.png)
[英]Perl DBIx::Class - Is it possible to provide a default value for inserting by using column attributes
[英]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' })
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.