Tag: cffreadsheet

使用cfspreadsheet阅读超过65536行Excel(93-97)工作表

您好我必须处理超过65536行的数据。 因此它被分成两个不同的Excel表格,分别命名为“Details”和“Details_1”。 基本上,发生的事情是上传Excel工作表,并使用“cfspreadsheet”来“读取”这些数据。 一旦读取这个插入到SQL表中。 我正在使用组件函数来读取这些1/2表。 这个想法是cfif从“cfspreadsheet”Query querycount()超过65533,然后读取第二张表。 然后使用QoQ和UNION ALL来创build一个联合查询(大多数情况下只有一个表,但在某些情况下,它是两个以上)。 它工作很好,直到一段时间。 然后突然停止工作。 我不确定错误/错误是否已经导致它停止。 以下是我的代码 <cftry> <cfset fileEXCL = "#ExpandPath('../folder')#/#arguments.xclfile#" /> <!—when there e 2 Sheets —> <!—get info from sheet1 as a "query1"—> <cfspreadsheet action="read" src="#fileEXCL#" sheet="1" query="Query1" headerrow="1" /> <!— recordcount for "sheet1" as "count1"—> <cfset count1 =#Query1.recordcount#> <!— case when excel has more than […]

获得前导零不显示引号

我想删除单个,但是当我删除它,然后前导零不显示。 我想要前导零显示,但没有引号。 我的列数据types是varchar: <cfquery name="getStudent" datasource="#Application.dsn#"> SELECT CONCAT('\'',U.user_gov_id) as User_gov_id , U.user_first_name , U.user_last_name , CONCAT('\'', U.user_mobile ) as Mobile_Number , U.user_address, U.user_street_number, U.user_city , U.user_post_code , DATE_FORMAT(U.delivery_date, '%Y-%M-%d %h:%i:%s') FROM tblUSER U INNER JOIN tblUSER_PAYMENT P ON U.user_id = P.user_id WHERE P.other_amount = '250' AND U.isdelivered = 0 AND U.matrix_node_number > 155 </cfquery> 对于Excel一代 […]