Several databases I am familiar with provide functions or modules for encryption. Examples include dbms_crypto for oracle databases and built-in functions for MySQL.
Most of the commonly used programming languages have cryptography libraries available.
From a security perspective, are there any issues that would lead to choosing one over the other? Is one method highly preferable over the other?