Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
編集:REGEXPを使用して、特定の番号を含むレコードをクエリする方法は?
データベース:
id | number 1 | ["5","8","9","19","1"] 2 | ["2","3","8","11","10"] 3 | ["1","14","3","22","15"] 4 | ["20","8","4","6","7"] 5 | ["3","9","14","20","10"]
SQLで、たとえば、番号が8のレコードのみをクエリする方法は?(Idの1、2、および4)
データ型番号がわからないので、テキストと仮定しました。
Select * from mytable Where number like '%"8"%'