I think this is not a standard function that will work for every DBMS that openmrs supports