簡體   English   中英

使用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' })

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM