LoginSignup
1
1

More than 5 years have passed since last update.

MySQLでも愛が生まれた

Last updated at Posted at 2016-05-11

元ネタ: 愛が生まれた(golangによる実装)
関連ネタ: SQLでも愛が生まれたけど(SQLによる実装)

SELECT CHAR(ORD('生') & ORD('死'));

クライアント側の文字コードをutf8とする必要がある。

他のRDBMSを試せる環境がないため未確認だが、恐らく各RDBMSにCHAR()及びORD()に似たような独自の関数が定義されていると思うので、それらに置換すれば動くはずだ。

他のRDBMS

1
1
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1