SELECT prod_id, prod_name FROM products WHERE prod_name LIKE 'jet%'; #百分号(%)表示任何字符出现任意次数, %不能匹配值为NULL的行。 SELECT prod_id, prod_name FROM products WHERE prod_name LIKE '%anvil%'; SELECT prod_id, prod_name FROM products WHERE prod_name LIKE 's%e'; SELECT prod_id, prod_name FROM products WHERE prod_name LIKE '_ ton anvil'; #和%的用途一样,但下划线只能匹配单个字符。 SELECT prod_id, prod_name FROM products WHERE prod_name LIKE '% ton anvil';