mysqldude
Error codes › 1287

MySQL & MariaDB error 1287 ER_WARN_DEPRECATED_SYNTAX

MySQL'…' is deprecated and will be removed in a future release. Please use … instead
MariaDB'…' is deprecated and will be removed in a future release. Please use '…' instead
Example from our test runs: Setting user variables within expressions is deprecated and will be removed in a future release. Consider alternatives: 'SET variable=expression, ...', or 'SELE (8.0.46) · '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' in (10.6.28)
MySQLMariaDB
SymbolER_WARN_DEPRECATED_SYNTAXER_WARN_DEPRECATED_SYNTAX
SQLSTATEHY000HY000
TypeServer errorServer error
Versionsevery release since 5.0 activeevery release since 5.5 active

Where this error shows up in our guides

How the message changed between versions
MySQL fromSymbolMessage
5.0.96ER_WARN_DEPRECATED_SYNTAX'%s' is deprecated; use '%s' instead
5.1.77ER_WARN_DEPRECATED_SYNTAX'%s' is deprecated and will be removed in a future release. Please use %s instead
MariaDB fromSymbolMessage
5.5.68ER_WARN_DEPRECATED_SYNTAX'%s' is deprecated and will be removed in a future release. Please use %s instead
11.5.2ER_WARN_DEPRECATED_SYNTAX'%s' is deprecated and will be removed in a future release. Please use '%s' instead