If there was no gravity to hold the ocean would earth be dried out?

Other things being equal, without gravity Earth would quickly lose its atmosphere and ocean; Earth itself would probably soon be torn apart due to its rotation.