make statement SQL compatible MySQL and Oracle