give better example for delEntries
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1fb38d63e4
commit
3a8ee9cf5b
@ -3119,11 +3119,13 @@ sub getAllAttribs
|
||||
Error:
|
||||
|
||||
Example:
|
||||
my $table=xCAT::Table->new("notification", -create => 1,-autocommit => 0);
|
||||
my %key_col = (filename=>$fname);
|
||||
$table->delEntries(\%key_col);
|
||||
$table->commit;
|
||||
|
||||
my $table=xCAT::Table->new("nodelist");
|
||||
my %keyhash;
|
||||
$keyhash{node} = "node1";
|
||||
$keyhash{groups} = "compute1";
|
||||
$table->delEntries(\%keyhash);
|
||||
Build delete statement and'ing the elements of the hash
|
||||
DELETE FROM nodelist WHERE ("groups" = "compute1" AND "node" = "node1")
|
||||
Comments:
|
||||
none
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user