我正在尝试让一些php if语句只在最后一次fwrite运行时才运行。并且我只想使用$output输出一个$key。下面是我的代码片段:fwrite($fh, $phptag);// The last fwrite that I want checked// Check if write has been successful $output = json_encode(array( // create JSON d
select MAX (cast (id as numeric)) from table --whatever value it may return
(row_number ()id)) as Number from table --will start at 1
我如何组合这两个,因此,无论第一个查询返回的值,我可以使用该值和自动增量从那里,以某种方式组合两者(尝试嵌套,但不成功