English 中文(简体)
铁路阻塞删除一条行
原标题:Rails fake deletion of a row

I m 寻找从一个使用铁路的桌上取出的铝土。 除我希望显示最近删除的项目外,任何正常的<代码>.find()查询中都显示行踪。 现在用于管理这些任务的活动表格的Im,该表格储存了最近各行文上进行的<条码><> > > 字<>>、<条码>、<条码>和<条码>。

如果不实际将其从桌子上删除,是否有办法可以让行走。 难道希望这样的是,在歌曲旁边有一张检查箱?

最佳回答
问题回答

页: 1 页: 1 在删除部分内容时,不要将删除功能从表WHERE blah中发送DELETE = 真实说明,你只是读了UPDATE表SET 删除=真实WHERE blah = 真实。 然后,当你重新寻找一些东西时,总是规定列入<代码>被删除的>=虚假的条件(如果你重新寻找删除的项目,则属实)。 删除的吨数将予退还,但你仍然掌握了有关删除项目的信息。

你可以将数据复制到“删除的记录表”,但是,它把行为视为“不相称或类似行为”(也称为软手法)是你想要的。

您能否增加数据库指数,包括删除对普通询问的错误条件?

哪一类询问是“在任何正常情况下,哪一行不显示”?

Stephan

类似于<代码>删除 以上一栏,但你可能通过使用观点避免铁路一侧的头痛。

页: 1 然后,您可使用<代码>。 欧洲妇女论坛 All_columns_but_hidden 页: 1

你的榜样是基于这一观点,不需要做任何特殊的事情。 您可以通过<代码>UPDATE Backing_table SETidden = 真正的WHERE条件;来掩盖事情。





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签