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.
是否有更好的方法来执行以下 sql 查询我不确定 Like 语句是否是最佳选择,因为 location 列仅包含完全匹配。
INSERT INTO test_reports (Table_Name, Total_Count) SELECT "table1", COUNT(1) FROM table1 WHERE location LIKE 'birmingham'
您的搜索字符串中没有通配符。如果没有通配符,like则与=.
like
=