CAST('0b101010' AS …)

BigQueryDb2 (LUW)DerbyH2MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite2005200720092011201320152017201920212023⚡ 3.5.7 - 3.50.0a⊘ 2008R2 - 2022✓ 16 - 17⊘ 8.3 - 15⊘ 11gR1 - 23.9⚡ 5.0 - 9.3.0a⚡ 5.1 - 12.0.2a⊘ 1.4.192 - 2.3.232⊘ 10.15.1.3 - 10.17.1.0⊘ 9.7 - 12.1.2⊘ 2.0
  1. Doesn’t fail, but returns the wrong result. E.g. just the “0“ before the first letter