W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
Delete edge 命令用于刪除數(shù)據(jù)庫。 這相當(dāng)于delete命令,添加了檢查和保持與頂點(diǎn)的一致性,通過從“in”和“out”頂點(diǎn)屬性中刪除所有對(duì)邊的交叉引用。
DELETE EDGE ( <rid> | [<rid> (, <rid>)*] | ( [ FROM (<rid> | <select_statement> ) ] [ TO ( <rid> | <select_statement> ) ] ) | [<class>] ( [WHERE <conditions>] [LIMIT <MaxRecords>] [BATCH <batch-size>] ))以下是上述語法中的選項(xiàng)的詳細(xì)信息。
orientdb {db = demo}> DELETE EDGE FROM #11:2 TO #11:10 WHERE date >= "2012-01-15"
如果上面的查詢執(zhí)行成功,你會(huì)得到下面的輸出。
Delete record(s) '2' in 0.00200 sec(s)
執(zhí)行以下查詢以從頂點(diǎn)“#11:5”開始到頂點(diǎn)“#11:10”刪除邊,并與“class = Customer”相關(guān)。
orientdb {db = demo}> DELETE EDGE FROM #11:5 TO #11:10 WHERE @class = 'Customer'
如果上面的查詢執(zhí)行成功,你會(huì)得到下面的輸出。
Delete record(s) '2' in 0.00200 sec(s)
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: