<rss version="2.0">
			<channel>
			<title>RIA CFML Flex Flash</title>
			<link>http://www.cfcdeveloper.com/index.cfm</link>
			<description>Adobe RIA Development</description>
			<language>en-us</language>
			<pubDate>Sun, 05 Sep 2010 15:27:31 -0700</pubDate>
			<lastBuildDate>Wed, 09 Sep 2009 16:40:00 -0700</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>clint317@cfcdeveloper.com</managingEditor>
			<webMaster>clint317@cfcdeveloper.com</webMaster>
			
			
			
			
			
			<item>
				<title>MySQL Find and Replace</title>
				<link>http://www.cfcdeveloper.com/index.cfm/2009/9/9/MySQL-Find-and-Replace</link>
				<description>
				
				I didn&apos;t know until now about the replace function in MySQL. Evidently you can do case-sensitive search and replace pretty easily.

update table set field = replace(field,&apos;before&apos;,&apos;after&apos;);

I&apos;m not sure about using regex but you can do multiple fields at once. Like this:

update tblblogentries set body = replace(body,&apos;ColdFusion&apos;,&apos;ColdFusion&apos;), title=replace(title,&apos;ColdFusion&apos;,&apos;ColdFusion&apos;)

Don&apos;t even say it ;p
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>SQL</category>
				
				<pubDate>Wed, 09 Sep 2009 16:40:00 -0700</pubDate>
				<guid>http://www.cfcdeveloper.com/index.cfm/2009/9/9/MySQL-Find-and-Replace</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>cfargument type and mysql time</title>
				<link>http://www.cfcdeveloper.com/index.cfm/2009/7/31/cfargument-type-and-mysql-time</link>
				<description>
				
				Not having blogged in a while I thought I&apos;d put out something, so here&apos;s a little ditty about something I&apos;m looking at right now. How to handle matching ColdFusion types to the time data type used in Mysql.

I have a table with columns of type &quot;time&quot; in my MySQL rdbms and I will need to use CF to retrieve and store time type data such as 08:23:00, ie. 8:23am. Note that MySQL stores time military style, ie. 18:23:00 is 6:23pm.

So the first thing to think about is passing time values in and out of components through the cfargument tag with the right type choosen. Funny thing is that you can use three different types, &apos;Any&apos;, &apos;String&apos;, &apos;Date&apos;, and even &apos;Numeric&apos;. How numeric works I don&apos;t know, but it does. Personally I&apos;ve just been using &apos;Any&apos; as a general rule, until they actually add a &apos;Time&apos; type, if ever.

Using that argument within your query, or cfqueryparam to be more exact, you&apos;d use the cfsqltype of &apos;cf_sql_time&apos;. Easy enough right? And if your passing around datetime values you can always use createODBCTime function to format it for the MySQL time column.
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>SQL</category>
				
				<pubDate>Fri, 31 Jul 2009 10:25:00 -0700</pubDate>
				<guid>http://www.cfcdeveloper.com/index.cfm/2009/7/31/cfargument-type-and-mysql-time</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Moving to CF 8 and MySQL 5</title>
				<link>http://www.cfcdeveloper.com/index.cfm/2007/10/15/Moving-to-CF-8-and-MySQL-5</link>
				<description>
				
				Issues: Moving from CF 7 and MySQL 4 to CF 8 and MySQL 5

1. In MySQL 4 you could pass an empty field (&quot;&quot;) to a primary key column that is auto insert, in MySQL 5 you can not. Simply take that out of your insert query completely.

2. MySQL 4 was much more relaxed and forgiving about fields not checked to allow null. If a field did not allow null and you passed in nothing on insert for that field, or did not include that column on insert, it would still work. However, for MySQL 5, if a field is not nullable, you must pass in something on insert. Simply allow null for that field or give that field a default value.

I will update this if I find any other issues.
				
				</description>
				
				<category>SQL</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Mon, 15 Oct 2007 17:17:00 -0700</pubDate>
				<guid>http://www.cfcdeveloper.com/index.cfm/2007/10/15/Moving-to-CF-8-and-MySQL-5</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>MySQL - delete using</title>
				<link>http://www.cfcdeveloper.com/index.cfm/2007/10/7/MySQL--delete-using</link>
				<description>
				
				Records in table A reference records in table B. Such as a customer table might have a reference to an orders table where each order record has a customer ID column.

How do you delete customer records that do not have any matching orders?

&lt;code&gt;
DELETE FROM customers A USING
A LEFT JOIN orders B 
ON A.customerid = B.customerid
WHERE B.customerid IS NULL
&lt;/code&gt;

Remember that one.
				
				</description>
				
				<category>SQL</category>
				
				<pubDate>Sun, 07 Oct 2007 17:41:00 -0700</pubDate>
				<guid>http://www.cfcdeveloper.com/index.cfm/2007/10/7/MySQL--delete-using</guid>
				
			</item>
			
		 	
			</channel></rss>
	

