Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Bumped up
Copy link to clipboard
Copied
I done it with code like this, but it took about 200 seconds to finish and generated 300000 rows in WORDS
it would be cool if it could be done in pure sql, mabye it could be done using ms sql cursors
<cfset datasource = application.datasource>
<cfset datasource = application.datasource>
<cfquery name="q" datasource="#datasource#">
select * from staff
</cfquery>
<cfloop query="q">
<cfloop list="#comment#" index="word" delimiters=" ,?,.,!,;#chr(10)##chr(13)#">
<cfquery name="q2" datasource="#datasource#">
insert into WORDS values(
<cfqueryparam value="#word#" cfsqltype="cf_sql_varchar">
)
</cfquery>
</cfloop>
</cfloop>