由买买提看人间百态

topics

全部话题 - 话题: deletions
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
a9
发帖数: 21638
1
来自主题: Joke版 - Re: 为什么没有delete键?
【 以下文字转载自 Apple 讨论区 】
发信人: Milstein (It's a wonderful life), 信区: Apple
标 题: Re: 为什么没有delete键?
发信站: BBS 未名空间站 (Mon Apr 9 01:58:38 2012, 美东)
Fn + delete
l******t
发帖数: 2113
2
来自主题: Apple版 - about deleting apps on iphone
is it a complete uninstall by deleting the app with holding and deleting
precedure? will there be some sort of files leftover like in windows which
would slow the system down?
g***r
发帖数: 826
3
来自主题: Apple版 - about deleting apps on iphone
i don't think so.... An app is really a package of self-contained files.
Once you delete an app, you delete everything in the package. However, there
may be some small preference files left over under your home directory and
I am not sure about these.
d****i
发帖数: 16
4
Same program using ASP. One works fine, another server can
display but can't delete or update.
WHY?
Help please!!
It is possible that server adm disables the delete and
update function?
s***f
发帖数: 173
5
来自主题: BuildingWeb版 - [转载] deletion in asp.net
hi qqzj,
My solution : Implement it in Javascript.
Plus, I dont know whatever about ASP.NET, but I could give a sample code in
ASP.
so, you can play with the following codes for your own purpose:

<%
'Two query strings are required:
'1. action -- you decide the action. Namely, DELETE.
'2. YourRecordID -- which rec
w***z
发帖数: 1848
6
【 以下文字转载自 Linux 讨论区 】
发信人: windz (风子), 信区: Linux
标 题: how to delete a file with NULL name in unix?
发信站: BBS 未名空间站 (Tue May 8 12:08:36 2007)
I accidentally create a file with null name in unix. if I do "ls -l", I can
see the entry but cannot see the file name. How can I delete it?
e******r
发帖数: 220
7
我想把所有数据从一个table里去掉, 先试了truncate,没成功(说是referenced
by foreign key); 用delete就成了.
什么原因啊? 在这个例子里, 用delete 会不会破坏数据库的结构?
谢谢
c*****d
发帖数: 6045
8
不管delete还是truncate,都不会破坏数据库的结构
delete是dml,可以rollback
truncate是ddl,不可以rollback
c*****d
发帖数: 6045
9
truncate table操作oracle要检查是否存在ref关系
如果有B表fk ref到你要truncate的表A,即便B表里实际没有数据,truncate A操作也不
能成功
delete就不同了,如果没有对应的数据,delete A操作可以
w*********e
发帖数: 5286
10
truncate = delete + commit
except
no DML triggers will be fired in truncate.
you cannot rollback, it removes all rows in a table, but not the schema,
privileges, etc.
truncate is usually much faster than delete cuz it does not need to save all
rows in undo space.
n*******r
发帖数: 425
11
truncate ddl
delete is dml
"
truncate = delete + commit
except
no DML triggers will be fired in truncate
"
not true, truncate set hwm back to original points so it cleans up the space
immediately, unless you specify REUSE STORAGE clause
c****y
发帖数: 3592
12
初上手用个delete竟然怎么都成不了
DELETE From A
where xxx in (select xxx From B)
error Code: 1093. You can't specify target table 'a' for update in FROM
clause
google了很久,我A和B根本就是两个table那里不对了?
i****a
发帖数: 36252
13
Can you do delete without the sub
select. Put the where clause in to the delete statement.

[发表自未名空间手机版 - m.mitbbs.com]
j*****n
发帖数: 1781
14
partitioning will definitely improve the performance.
specially if the partition(s) hold only the records that will be deleted,
then the delete action will take no time via dropping the partition(s).
j*******7
发帖数: 6300
15
那个Delete语句可以这么写:
DELETE TOP(10000) FROM Transactions
WHERE TransStartTime >= @FromDate and TransStartTime < @EndDate
Not sure if it's faster. The "select *" is bad in my eyes.
b**a
发帖数: 1118
16
http://sqlblogcasts.com/blogs/simons/archive/2009/05/22/DELETE-
According to that link, that is faster actually than delete directly...
b**a
发帖数: 1118
17
Now we can only delete them in 1 hour. How to make it in 30 mins?
Thanks,
Ming
Update:
Tried all i can except partitioned table. We cannot drop the index and rebuild it because other hourly sql job is going to insert a lot of records in the same table. Seemed no way to ensure it will finish in 30 mins so my solution is to add a waitfor delay 0.2 in every loop. In this way, the delete will finish much longer (2:30) but it will not affect any other jobs.
i****a
发帖数: 36252
18
Can you do delete without the sub
select. Put the where clause in to the delete statement.

[发表自未名空间手机版 - m.mitbbs.com]
j*****n
发帖数: 1781
19
partitioning will definitely improve the performance.
specially if the partition(s) hold only the records that will be deleted,
then the delete action will take no time via dropping the partition(s).
j*******7
发帖数: 6300
20
那个Delete语句可以这么写:
DELETE TOP(10000) FROM Transactions
WHERE TransStartTime >= @FromDate and TransStartTime < @EndDate
Not sure if it's faster. The "select *" is bad in my eyes.
b**a
发帖数: 1118
21
http://sqlblogcasts.com/blogs/simons/archive/2009/05/22/DELETE-
According to that link, that is faster actually than delete directly...
s*********1
发帖数: 103
22
来自主题: Database版 - 求帮忙recover deleted rows in oracle
小弟不小心在几个表里deleted some rows in oracle, 试了试flashback, 还是解不了
问题,求高人指点。
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
昨天 //SQL> delete from plus_purl_request where id_of_job = 'CBG100049';
今天//SQL> select * from plus_purl_request where id_of_job = 'CBG100049';
no rows selected
SQL> alter table plus_purl_request enable row movement;
Table altered.
SQL> FLASHBACK TABLE plus_purl_request TO TIMESTAMP TO_TIMESTAMP('04/09... 阅读全帖
b**u
发帖数: 1206
23
【 以下文字转载自 Windows 讨论区 】
发信人: bodu (我怎么知道,我是灌水的), 信区: Windows
标 题: win7瞎如何delete msi*.tmp目录
发信站: BBS 未名空间站 (Mon Jan 17 22:24:26 2011, 美东)
破瘟7在我的机器D盘根目录下建了上百个msi*.tmp的目录,我是超级用户,但还是不能
delete掉那些目录。有没有哪位大侠支一招,怎么除掉这些目录?谢谢。
t****g
发帖数: 35582
24
取得onwership然后delete,如果还不行重起进安全模式delete,如果还不行用PE重启
删除,如果还不行用dos引导删除。
g**********y
发帖数: 14569
25
I find this annoyance in ArrayList/HashSet/HashMap...
If I want to loop through iterator and delete some elements on condition, I
have to do it:
1. Loop through iterator and find all elements satisfy condition, save them
in a collection.
2. Delete temp collection elements from original collection.
I have to do two steps because iterator can't be broken during loop. Is
there a better/simpler way to do this? I have no limitation on the data
structure.
Thanks.
p*****a
发帖数: 1152
26
http://linuxcommando.blogspot.com/2008/09/how-to-find-and-delete-all-hard-links.html
Deleting a file is deceptively simple. You can simply use the rm command
like this.
$ rm file1
However, if the file has one or more hard links to it, life gets more
interesting. You need to seek and destroy all hard links to the file.
A hard link is essentially another name for a file. Hard links to file1 can
be created as follows:
$ ln file1 file2
$ ln file1 tmp/file3
file2 and file3 become another name of file
f****y
发帖数: 70
27
来自主题: Programming版 - new了指针,delete的时候出错了
这种情况怎么debug?
通常为什么会delete出错呢.
比如
unsigned char *buf = new unsigned char[4*4096];
程序最后在deconstruct里有
delete [] buf; 不过到这句就出错了.
V******M
发帖数: 54
28
来自主题: Programming版 - new了指针,delete的时候出错了
Exactly, that is why some people always put
ptr = null;
after
delete ptr;
when they release allocated memory.
BTW, deleting a null pointer is safe.

char[4*4096];cout<<"Construction:"<
l******e
发帖数: 13
29
来自主题: Programming版 - delete一问
T *p=new T[10];
delete p;
感觉delete p[]才对,但是这样应该也没问题吧,
可答案说不是。请解释一下有什么区别。
c***g
发帖数: 472
30
来自主题: Programming版 - one question about delete in c++
I saw a statement that delete p will do nothing if p is equal to NULL.
But I also saw a statement that never detele a pointer twice.
Is there a confilict?
Is p NULL after delete p? if not, what's it?
Thanks!
I am a new cop
r********g
发帖数: 1351
31
来自主题: Programming版 - one question about delete in c++
delete p 是指针指向的这块空间被系统回收了。p 不会变成NULL,仍然指向那块空间
。此时再delete 一次会出错,因为这块空间已经被回收了
s*******d
发帖数: 59
32
来自主题: Programming版 - delete[]的设计很不好
new 与 delete对应
new 【】与delete【】对应
编译器实现也许更方便,但使用多了负担。这对于实现一次,使用多次的情况(C++语言
规范)
而言,简直就是不负责任的做法。
c*******u
发帖数: 1269
33
来自主题: Programming版 - How to auto delete forum spam users?
I am an adm of a user forum and I start seeing a lot of spam user try to
register to the forum. Now what I have to do is login to the forum and
delete the ID one by one, how can I for example delete from user 20 to user
100 altogether? BTW forum is based on phpbb. thanks.
d****2
发帖数: 6250
34
来自主题: Programming版 - one question about operator delete

dtor is object-specific. must check first.
now after free object-specific space, free the space the object itself in
heap (space usage sizeof(object)), that will check NULL pointer there so no
need to check before calling delete.
Basically it is implementation-specific based on delete semantic in C++.
I*******e
发帖数: 1879
35
来自主题: Programming版 - [合集] c++ delete问题
☆─────────────────────────────────────☆
everid (everid) 于 (Fri Apr 10 20:46:33 2009) 提到:
写一个class,里面会经常有动态的内存分配,destructor 里用不用把所有动态分配的
内存都释放掉?
比如:
class dynamic{
double* _dp;
public:
dynamic(int size){
_dp=new double[size];
}
~dynamic(){
if(_dp){ delete [ ] _dp; _dp=0;}//这个有必要吗?
}
};
前提是已知没有内存泄漏的情况,直到对象被销毁,destructor里的delete 有没有必
要?
谢谢。
☆─────────────────────────────────────☆
lift (lift) 于 (Fri Apr 10 21:01:00 2009) 提到:
要是外部引用了_dp,对象析构后岂不无效
如果程序不是长时间运行且内存占用不多,没必要释放,
s********z
发帖数: 5411
36
来自主题: Programming版 - Find and delete folder in C++
Hi,
I am trying to write a simple C++ routine to find and delete the folder and all the files and subdirectory under the folder.
I have attached the folder structure. I need to delete from the oldest
folder until the disk has certain free space. For example, under data folder, I need start from "20090207" folder. I can either use the folder create time or folder name to find the oldest folder.
Please help me with this. How find of functions should I use and how
implement them.
Thanks a lot!!
g**********1
发帖数: 1113
37
来自主题: Programming版 - one question about overloading operator delete
When I try to overload operator delete in C++, I need to delete some void *.
Thus I will get warning when I compile the source code. I wonder if there
is any way to avoid the warning.
Thank you.
g**********1
发帖数: 1113
38
来自主题: Programming版 - one question about overloading operator delete
When I read the book: thinking in C++. The chapter about overload new and
delete operators. I practice the code and found the warning. Also this book
metions that not deleting void *. Thus I want to know how to avoid this
problem.
Thank you.
a***e
发帖数: 30
39
来自主题: Programming版 - 求教两个new - delete 问题, C++
(1)What's wrong:
A *a = new A[5];
delete a;
(2)What's wrong:
A *a=0;
delete a;
X****r
发帖数: 3557
40
来自主题: Programming版 - new一定要和delete配对吗?
No, don't make assumption on the underlying memory allocation
function "delete" uses, or how "delete" calls it.
X****r
发帖数: 3557
41
来自主题: Programming版 - C++ delete[]
just remember a simple rule: "new" matches "delete" and "new TYPE[]" matches
"delete[]"
i**p
发帖数: 902
42
来自主题: Programming版 - C++ delete[]
It is not good to delete these objects one by one, though I can use a loop
to do it. I am trying to find a statement like delete[] to remove all of
them in one line of code.

matches
g*****g
发帖数: 34805
43
来自主题: Programming版 - HOW TO DELETE IN KEY-VALUE STORE
Isn't delete just a write? Delete operation is appended in commit log,
during compaction, the row is removed.

is
k******r
发帖数: 2300
44
来自主题: Security版 - How to delete efcab.dll?
I couldn't delete this infected dll because it is used by another process. Any
one please tell me which process is using efcab.dll? How to delete it? Many
thanks.
O**D
发帖数: 50
45
Sorry for the global message. I will need to delete all personal files from
a company laptop. Is there anyway I can delete the files permanently and no
hurt to the laptop?
Many thanks.
G**T
发帖数: 388
46
来自主题: Unix版 - help delete files!
I copied some files from windows 98 to
SCO Unix. when I use rm delete them,
it reports:
345 >rm *.*
rm: remove `di2001.jpg', overriding mode 0555? y
rm: di2001.jpg: Permission denied
but I'm the owner of the file!
I can not delete those files from windows 98
too!
what should I do now?
thx
w***z
发帖数: 1848
47
【 以下文字转载自 Linux 讨论区 】
发信人: windz (风子), 信区: Linux
标 题: how to delete a file with NULL name in unix?
发信站: BBS 未名空间站 (Tue May 8 12:08:36 2007)
I accidentally create a file with null name in unix. if I do "ls -l", I can
see the entry but cannot see the file name. How can I delete it?
e****e
发帖数: 19
48
It's safe to delete all the stuff under windows/temp except
for WinME.
There is something about PCHealth in the same directory in
WinME which guides winME to properly shutdown (I guess).
But there is no problem for 98 and 2k so far as I find. Even
for winME, if you delete everything from windows/temp, just
remember to do a restart to restore the PCHealth info so
that you can shutdown properly.
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)