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.
所以,如果我说
$bike = 'Schwinn';
我可以有一个返回的选择语句并且Your bike is a $bike.没有额外的解析吗?echo $statementYour bike is a Schwinn.
Your bike is a $bike.
echo $statement
Your bike is a Schwinn.
通过在 MySQL 中使用CONCAT函数,您可以:
SELECT CONCAT('Your bike is a ', bike, '.') as 'Bike' FROM bicycles where bike = 'Schwinn'
演示