我有一个有趣的问题或脑屁。不知道哪个。有没有理由这个查询与coldfusion服务器的返回结果不同于实际的mysql?
这是我的查询的一部分:
<cfquery name="get_team" datasource="bluesky">
SELECT * FROM locations LEFT JOIN teams ON teams.team_id=locations.location_team
WHERE lower(location_name)='#LCASE(a[7])#, #LCASE(a[8])#'
</cfquery>
<cfdump var="#get_team#"><cfabort>
cfdump结果没有信息:
query
RESULTSET
query
COMPANY_ID LOCATION_CODE LOCATION_GIFT LOCATION_ID LOCATION_NAME LOCATION_TEAM TEAM_ID TEAM_NAME
CACHED false
EXECUTIONTIME 1
SQL SELECT * FROM locations LEFT JOIN teams ON teams.team_id=locations.location_team WHERE lower(location_name)='peru, il'
使用上面的sql从mysql返回:
location_id location_name location_gift location_team location_code team_id team_name company_id
85 Peru, IL 11 2 0 2 SJ1 2