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.
我喜欢从表中选择所有以开头后任何字符结尾的行abc。我可以用这个%-Tag 做到这一点。现在我想选择相同的,'abc' 之后的所有字符,而/不是%. 我怎样才能形成这个?
abc
%
/
SELECT * FROM table where myColumn LIKE CONCAT( 'abc', '%' );
你可以这样做:
SELECT * FROM table where myColumn LIKE 'abc%' and myColumn not like '%/%'