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.
当用户执行相同的 PHP 文件时。
MySQL 查询按什么顺序执行?是这样的吗?
file-to-file(collect the query/by file) Q1-Q2-Q3,Q1-Q2-Q3
或者
time-to-time(according who executed first/by time) Q1,Q1,Q2,Q2,Q3,Q3
它基本上是不时的......就像先到先得一样。
另一个有趣的事情是当系统中有多个用户时,多个 php 实例正在运行。php-mysql 驱动程序负责所有这些并在每个实例中并行执行。当然,对于单个实例,系统根据先到先得的原则维护作业(查询)列表。
:)
我正在编写代码: <?PHP $where='<something'; echo $where; ?> 但它不会回显任何内容,直到我将字符串 $where 更改为 '< something'(在“<”之后添加一个空格),为什么?
<?PHP $where='<something'; echo $where; ?>
它可能会将 < 编译为某些标