SOQL statements can use the “ALL ROWS” keywords to query all records in an organization, including deleted records and archived activities. You can use ALL ROWS to query records in your organization’s Recycle Bin.
But, you cannot use this keywords with the “FOR UPDATE” operation . This is supported by apex, but does not supported by developer console.