そして、SQLなどと=で_%の差

スタッフテーブル: 


 

 =和のような

差:=マッチ範囲のような正確な値を、一致

select * from staff where name = 'bob';

 


 select * from staff where name like 'bob';

 


_と%

相違点:_は任意の1文字に一致し、%はそれ以上の文字に一致します 

 select * from staff where name like '_lice';

 


select * from staff where name like '%e';

 


 


連結:スプライシング 

select id,name, concat( name,'是', job) from staff;

 

 

公開された114元の記事 ウォンの賞賛131 ・は 10000 +を見て

おすすめ

転載: blog.csdn.net/weixin_44364444/article/details/105289243