本文整理汇总了PHP中CM_Db_Db::deleteSequence方法的典型用法代码示例。如果您正苦于以下问题:PHP CM_Db_Db::deleteSequence方法的具体用法?PHP CM_Db_Db::deleteSequence怎么用?PHP CM_Db_Db::deleteSequence使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CM_Db_Db
的用法示例。
在下文中一共展示了CM_Db_Db::deleteSequence方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testDeleteSequenceWithWhere
public function testDeleteSequenceWithWhere()
{
$id1 = CM_Db_Db::insert('test', array('bar' => 'bar1', 'sequence' => 1));
$id2 = CM_Db_Db::insert('test', array('bar' => 'bar1', 'sequence' => 2));
$id3 = CM_Db_Db::insert('test', array('bar' => 'bar2', 'sequence' => 1));
$id4 = CM_Db_Db::insert('test', array('bar' => 'bar2', 'sequence' => 2));
$id5 = CM_Db_Db::insert('test', array('bar' => 'bar2', 'sequence' => 3));
CM_Db_Db::deleteSequence('test', 'sequence', array('id' => $id4), array('bar' => 'bar2'));
$this->assertRow('test', array('id' => $id1, 'sequence' => 1));
$this->assertRow('test', array('id' => $id2, 'sequence' => 2));
$this->assertRow('test', array('id' => $id3, 'sequence' => 1));
$this->assertRow('test', array('id' => $id5, 'sequence' => 2));
}