<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Newbie</title>
        <description>Forum for New Users of MySQL.</description>
        <link>http://forums.mysql.com/list.php?10</link>
        <lastBuildDate>Tue, 24 Nov 2009 20:20:03 +0000</lastBuildDate>
        <generator>Phorum 5.2.1-alpha</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292680,292680#msg-292680</guid>
            <title>Problem with stored procedure (1 reply)</title>
            <link>http://forums.mysql.com/read.php?10,292680,292680#msg-292680</link>
            <description><![CDATA[ I'm having some issues with a stored function, essentially what I'm trying to do is check the fields pulled down by the SELECT and check if they are NOT NULL, and setting the 's' varchar to the field that is NOT NULL.<br />
<br />
I'm new to this, so any help would be greatly appreciated. Thanks in advance.<br />
<br />
<br />
DELIMITER //<br />
<br />
CREATE FUNCTION entryStatusProgress (g INT)<br />
<br />
  RETURNS VARCHAR(3)<br />
<br />
  DETERMINISTIC<br />
<br />
  BEGIN<br />
<br />
  DECLARE s VARCHAR(3);<br />
<br />
  #g = GLASS<br />
<br />
  SELECT `assignedToSelf` ats, `ack_rr` ack, `attempt1` at1, `attempt2` at2, `responseProvidedID` res, `serviceProvided` ser, `fulfilled` ful,  `closed` clo<br />
  FROM gc_entry_status;<br />
<br />
  IF ats IS NOT NULL THEN;<br />
    IF ack IS NOT NULL THEN;<br />
      IF at1 IS NOT NULL THEN;<br />
        IF at2 IS NOT NULL THEN;<br />
          IF res  IS NOT NULL THEN;<br />
            IF ser IS NOT NULL THEN;<br />
              IF ful IS NOT NULL THEN;<br />
                IF clo IS NOT NULL THEN;<br />
                  SET s = 'clo';<br />
                ENDIF;<br />
                SET s = 'ful';<br />
              ENDIF;<br />
              SET s = 'ser';<br />
            ENDIF;<br />
            SET s = 'res';<br />
          ENDIF;<br />
          SET s = 'at2';<br />
        ENDIF;<br />
        SET s = 'at1';<br />
      ENDIF;<br />
      SET s = 'ack';<br />
    ENDIF;<br />
    SET s = 'ats';<br />
<br />
  END<br />
<br />
DELIMITER ;]]></description>
            <dc:creator>Timothy Ferrell</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 19:23:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292679,292679#msg-292679</guid>
            <title>Access to Mysql migration (1 reply)</title>
            <link>http://forums.mysql.com/read.php?10,292679,292679#msg-292679</link>
            <description><![CDATA[ Hello, <br />
<br />
I am tired of using Access. Now I want to use Mysql. Only problem is I have all my customer addresses and other information on Access. <br />
<br />
Can you help to get them working? <br />
<br />
Thank you.]]></description>
            <dc:creator>Mickael Wenders</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 16:29:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292670,292674#msg-292674</guid>
            <title>Stack Trace (-1 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292670,292674#msg-292674</link>
            <description><![CDATA[  -- moved topic -- ]]></description>
            <dc:creator>James Hawkins</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 15:13:54 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292660,292660#msg-292660</guid>
            <title>mysqldump: Got error: 1045: only from batch file. (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292660,292660#msg-292660</link>
            <description><![CDATA[ Hi,<br />
<br />
I am running mysql on a windows 2003 server.<br />
<br />
In the command line if I run this command<br />
<br />
D:\mysql\bin\mysqldump.exe -u root -p mypassword moodle &gt; D:\backup\SQLDump.sql <br />
<br />
It works fine, but if I stick the file in a batch file and run it, it generates this error.<br />
<br />
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using pas<br />
sword: YES) when trying to connect<br />
<br />
Any suggestions welcome.<br />
Thank you]]></description>
            <dc:creator>Steve Audus</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 14:36:20 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292646,292646#msg-292646</guid>
            <title>What's the meaning of this error code? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?10,292646,292646#msg-292646</link>
            <description><![CDATA[ Last day, when i do some work in my site <a rel="nofollow"  href="http://www.video-converter-best.com">http://www.video-converter-best.com</a>, there is an error: MySQL ERROR 1005: Can't create table (errno: 150), what is the meaning of this error?]]></description>
            <dc:creator>Bruce Gareth</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 15:26:26 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292644,292644#msg-292644</guid>
            <title>Show last 2 day data (3 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292644,292644#msg-292644</link>
            <description><![CDATA[ Hi all,<br />
I want to show last 2 days articles where date is stored as time(); function on database.<br />
Select id, article, time on articles where time &lt;....??<br />
<br />
this on PHP]]></description>
            <dc:creator>Agron Nikaj</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 13:20:03 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292642,292642#msg-292642</guid>
            <title>Reusing passed variables? (2 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292642,292642#msg-292642</link>
            <description><![CDATA[ Hi guys, this is something that comes up quite a lot with me and I'm not sure where to post this.<br />
<br />
If I use stored procedures, how can I reuse a variable?<br />
<br />
e.g. To get vehicles similar to a particular vehicle by vehicle model (but excluding said vehicle in the returned list)...<br />
<br />
SELECT * FROM vehicles WHERE id &lt;&gt; ? AND model = (SELECT model FROM vehicles WHERE id = ?);<br />
<br />
The two different place holders are actually the same variable, and instead of passing it twice, can I use something within the SQL statement itself? I tried to use VALUES(id) but this doesn't work.<br />
<br />
The answer may be simply, no there is no functionality to do this, just pass the variable twice, but for purposes of optimisation, I have to ask.<br />
<br />
Thanks,<br />
<br />
Gary]]></description>
            <dc:creator>Gary Lockett</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 14:08:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292641,292641#msg-292641</guid>
            <title>MySQL Database creation error (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292641,292641#msg-292641</link>
            <description><![CDATA[ Hello guys<br />
<br />
I ran into an error since today with the creation of SQL database<br />
<br />
here is the error<br />
<br />
. MySQL database failed! : SQL flush privileges failed : Table 'mysql.servers' doesn't exist at ../web-lib-funcs.pl line 1323.<br />
<br />
<br />
How to fix that prorblem ?<br />
<br />
I search trough the net a solution and founded this one from andrey:<br />
<br />
&quot;One possible fix would be to locate the &quot;mysql_fix_privilege_tables&quot; that's provided with your version of MySQL, and to run that -- it may be able to solve that for you.&quot;<br />
<br />
But I don't know how to it by the command line in the shell?<br />
<br />
<br />
Note: i'm using &quot;Virtualmin&quot; on a fresh centos 5.4<br />
cheers.]]></description>
            <dc:creator>Majeri Mourad</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 11:46:51 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292623,292623#msg-292623</guid>
            <title>DB  Permissions for a Mobilized Application (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292623,292623#msg-292623</link>
            <description><![CDATA[ Hi,<br />
<br />
 We have a mobile application which can access a mySQL database in our network.<br />
<br />
As a DB admin I would like to know what objects i shall give permissions to the mobile client user<br />
<br />
Shall the mobile client's access be similiar as that of desktop based accession of a DB Server (All objects,Read,Delete,Update Tables,SPs,Triggers,Functions etc)<br />
<br />
Or do i need to limit the permissions.<br />
<br />
<br />
Please suggest your thoughts,<br />
Omkumar.M]]></description>
            <dc:creator>Omkumar Muthusamy</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 09:37:38 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292621,292621#msg-292621</guid>
            <title>how to Add UUID() function as default value for a column like in ms sql (3 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292621,292621#msg-292621</link>
            <description><![CDATA[ hai<br />
 i am new to mysql environment,<br />
i want to Add UUID() function as default value for a column like in ms-sql<br />
how can i do it?<br />
i know one solution is creating trigger for that table. but trigger cannot add for temporary table.<br />
my requirement is Add UUID() function as default value for a column for temporary table like in ms-sql?<br />
<br />
can some one help me...............]]></description>
            <dc:creator>satyam p</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 11:31:18 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292607,292607#msg-292607</guid>
            <title>Multiple Result Sets on Mac OSX (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292607,292607#msg-292607</link>
            <description><![CDATA[ This has to be a newbie question. I've been pulling out my hair. Is there something I'm missing?  Are multiple result sets in a stored procedure not supported on mac?<br />
<br />
I thought it was a server issue but it seems to work from a PC.<br />
<br />
I've tried using query browser and navicat, but both will only return the first set.  <br />
<br />
I'm on Snow Leopard.<br />
<br />
Can anybody help me?]]></description>
            <dc:creator>Joel Caballero</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 06:40:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292606,292606#msg-292606</guid>
            <title>trigger UNIQUE constraint off and on to get around duplicate entry problems on UPDATE (2 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292606,292606#msg-292606</link>
            <description><![CDATA[ So here's the deal. I have a table, and for the majority of intents, I want a column to have a unique key constraint. All the data in this table initially  came from one source. Now, I am in the process of augmenting this data via data from another source. Seldom, this augmentation results in a duplicate entry. How do I allow this.<br />
<br />
I have two scripts:<br />
1.) grabs data from one source, don't want duplicate entries.<br />
2.) grabs data from second source. Updates the column with a unique key constraint which may cause duplicate key entries (I'm OK with this, but mysql is not).<br />
<br />
Both scripts run frequently but by no means at the same time, so I'm thinking I need to have a third script.<br />
<br />
1.) grabs data from source 1, then turns UNIQUE off.<br />
2.) grabs data from source 2.<br />
3.) reorders data so that uniqueness is no longer violated. Turns UNIQUE on.<br />
<br />
I'm a php guy, not a sql guy, anybody know what the third script/query would look like?<br />
<br />
Table is something like this after second script:<br />
<br />
<br />
| id - index | attribute 1 | attribute 2 | address - not unique | myId |<br />
|---- 1 -----|--- at1-1 ---|--- at2-1 ---|-- Carlsbad, CA ------| k162 |<br />
|---- 2 -----|--- at1-2 ---|--- at2-2 ---|-- Encinitas, CA -----| k489 |<br />
|---- 3 -----|--- at1-3 ---|--- at2-3 ---|-- Encinitas, CA -----| k213 |<br />
<br />
<br />
Here is what I want after third script:<br />
<br />
<br />
| id - index | attribute 1 | attribute 2 | address - unique |--- myId ---|<br />
|---- 1 -----|--- at1-1 ---|--- at2-1 ---|-- Carlsbad, CA --| k162 ------|<br />
|---- 2 -----|--- at1-2* --|--- at2-2* --|-- Encinitas, CA -| k489, k213 |<br />
<br />
*notice the attributes don't matter, I just want to preserve the myId's<br />
<br />
Any help would be appreciated. Thank you.]]></description>
            <dc:creator>Grant Gallagher</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 18:25:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292589,292589#msg-292589</guid>
            <title>Using drbd with dcm4che?? (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292589,292589#msg-292589</link>
            <description><![CDATA[ I have 2 servers machine A (primary) and machine B (secondary) configured with dcm4che, drbd and heartbeat.<br />
<br />
I want to set up something like: when machine A is down, the client computers can still query machine B to get the studies. Are there any ways for machine B to &quot;pretend&quot; to be machine A? Say, machine B can somehow &quot;acquire&quot; the IP address and AE title of machine A, so that the client computers would recognize machine B as machine A without noticing that machine A is down?<br />
<br />
Any help will be appreciated! Thanks!]]></description>
            <dc:creator>ruby leung</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 04:30:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292585,292585#msg-292585</guid>
            <title>Optimize talbe and replication in mysql 4.0.20 (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292585,292585#msg-292585</link>
            <description><![CDATA[ Hello, everyone<br />
I'm using mysql 4.0.20, and I do 'optimize table' command in master , and it seems optimize not replicated to slave , I googled a few and found 'Before MySQL 4.1.1, FLUSH, ANALYZE, OPTIMIZE, and REPAIR statements are not replicated.' , So how to optimize table in mysql 4.0.20 slave? <br />
Can I just run the 'optimize table' command in slave?<br />
<br />
Thanks.]]></description>
            <dc:creator>jefix jefix</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 04:13:04 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292566,292566#msg-292566</guid>
            <title>Is it possible to convert a varchar column to autoincremented primary key? (2 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292566,292566#msg-292566</link>
            <description><![CDATA[ I have a table that was not very smartly designed to use another db's id field as the primary index to join other records to.  The problem is that the values in that field have been stored as varchars and not as autoincremented ints.  What I'd like to do is convert that column to sequential ints and set it as the primary key, auto, without destroying my existing records. I also need to change the foreign key of all the tables that rely on that column.  For example,<br />
<br /><pre class="bbcode">
id      field
--------------
8292    foo
203875  bar
1375    morefoo</pre>
<br />
should be<br />
<br /><pre class="bbcode">
id      field
--------------
1       foo
2       bar
3       morefoo</pre>
<br />
And other tables should be converted from<br />
<br /><pre class="bbcode">
id      foreign_id
--------------
32      8292  [...]
97      203875[...]   
388     1375  [...]</pre>
<br />
to<br />
<br /><pre class="bbcode">
id      field
--------------
32       1  [...]
97       2  [...]
388      3  [...]</pre>
<br />
Your help would be appreciated.  Thanks.]]></description>
            <dc:creator>Lance Monotone</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 20:09:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292562,292562#msg-292562</guid>
            <title>How come my query wont return all 'categories'? (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292562,292562#msg-292562</link>
            <description><![CDATA[ My mistake.  Works like a champ.]]></description>
            <dc:creator>Tim McCune</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 23:01:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292557,292724#msg-292724</guid>
            <title>Debian/JDBC: unable to connect to the database (-1 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292557,292724#msg-292724</link>
            <description><![CDATA[  -- moved topic -- ]]></description>
            <dc:creator>Jaws Jaws</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 19:27:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292553,292553#msg-292553</guid>
            <title>Still having column problems (3 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292553,292553#msg-292553</link>
            <description><![CDATA[ im still having problems with this query.....i looked into pivot tables...but its not displaying the columns how i need them to be displayed.<br />
<br />
my table is set up as followed:<br />
<br />
Table name = shows<br />
columns = id,venue,date,cites,states,info,address<br />
<br />
i just need the query to display like this<br />
<br />
&amp;id=id01|id02|id03<br />
<br />
not like this<br />
<br />
&amp;id=ido1|<br />
&amp;id=ido2|<br />
&amp;id=id03|<br />
<br />
and then i need to display each column this way.....please keep in mind i just started with mysql and php last week, so i am learning very quickly i am still very new at this...i just an example and i can go from there or someone to point me in the right direction...]]></description>
            <dc:creator>D A</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 01:24:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292552,292552#msg-292552</guid>
            <title>Comparing Data set in same table (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292552,292552#msg-292552</link>
            <description><![CDATA[ Let me preface this by saying that I am open to an alternate method of doing what I am trying to accomplish. <br />
<br />
What I am trying to accomplish is grab selected columns from a mssql db and dump it into a mysql db daily and then compare the data sets. I have no problems with grabbing the data, i assign each row a difference 'id' per day. I must do it this way as I was told not to create addition sql dbs on our mssql server. whatever. I then use php to do searches, compares and then output to xls format. This is accomplished by basic while function in php.<br />
<br />
Well, i was reading about comparing tables using the EXISTS and NOT EXISTS function and i figure I would give it a try. Well, my queries resulted in zero results found. Example: SELECT * FROM table1 where recordset = 3 AND NOT EXIST (SELECT * FROM table1 WHERE recordset = 2) <br />
<br />
I am looking for rows in one recordset that are not in the other recordset (like it data changes in recordset)]]></description>
            <dc:creator>David Jata</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 21:14:36 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292543,292543#msg-292543</guid>
            <title>programming commands for mysql (1 reply)</title>
            <link>http://forums.mysql.com/read.php?10,292543,292543#msg-292543</link>
            <description><![CDATA[ I've found programming reference/samples for opening/closing a db.  Selecting/Inserting from an existing db.  But have not found a reference for Creating a database, creating tables, dropping tables, etc.  which API is appropriate for these type of commands?  BTW I'm using C# and ado.net.<br />
<br />
Thanks.<br />
Larry]]></description>
            <dc:creator>Larry Dick</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 20:40:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292526,292526#msg-292526</guid>
            <title>Mysql php column display problem (4 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292526,292526#msg-292526</link>
            <description><![CDATA[ I am trying to display all the information in several columns to display each column as a row instead of stacked on top of each other for example<br />
<br />
need to display data from mysql database like this....below<br />
<br />
&amp;example_column_venue=venue01|venue02|venue03example_column_date=date01|date02|date03<br />
&amp;example_column_cites=cites01|cites02|cites03<br />
<br />
i have been searching everywhere online for an answer on how to do this.( which means i havent been explaning it right or two its to easy)<br />
<br />
i am puting a togther a website with flash and need to display the data this way to get all the information to show up from the php file to the flash action script code<br />
thanks<br />
D]]></description>
            <dc:creator>D A</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 21:04:48 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292525,292525#msg-292525</guid>
            <title>query problem (3 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292525,292525#msg-292525</link>
            <description><![CDATA[ I'm new to php and mysql and seem to be stuck with the following -<br />
<br />
I have a table showing placement hours for students and I want to produce a total number of hours for each type of supervisionlevel for each student.<br />
<br />
The query works if I dont incluse the where statement but the idea is that each student will se the total for theor own number of hours - the code is:<br />
<br />
mysql_select_db($database_PEF, $PEF);<br />
$query = &quot;SELECT supervisionlevel, SUM(totalhours) FROM placement GROUP BY supervisionlevel WHERE studentID = '$studentID'&quot;;	 <br />
$result = mysql_query($query) or die(mysql_error());<br />
<br />
Can someone please help me out with this - its driving me daft :0)]]></description>
            <dc:creator>Ian Mullineaux</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 15:01:21 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292512,292512#msg-292512</guid>
            <title>Help on efficient JOIN query needed (3 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292512,292512#msg-292512</link>
            <description><![CDATA[ I know there's a better way to write this query.  It runs quickly on my local db but hangs on the remote (mine is 5.0.27, theirs is 4.1.25).  It seems to be creating a large temp table before returning the results.  Here's the query...any help would be appreciated. I didn't write this but I can probably explain it if you need more info.<br />
<br />
SELECT DISTINCT<br />
tkg_property.id AS id,<br />
tkg_property.name as name,<br />
tkg_property.description as description,<br />
tkg_town.name AS town,<br />
tkg_town.county AS county,<br />
tkg_town.state AS state,<br />
tkg_property.pending AS pending,<br />
tkg_property.price AS price,<br />
tkg_property.town_id AS town_id,<br />
tkg_property.school_district_id AS school_district_id,<br />
tkg_school_district.name AS school_district_name,<br />
tkg_property.acreage AS acreage,<br />
tkg_property_building.bedrooms AS bedrooms,<br />
tkg_property_building.bathrooms AS bathrooms,<br />
tkg_property_building.id as property_building_id,<br />
tkg_property_media.path as path<br />
   FROM<br />
    tkg_property,<br />
    tkg_property_building,<br />
    tkg_property_media,<br />
    tkg_town,<br />
    tkg_school_district<br />
   WHERE<br />
    tkg_property.id = tkg_property_building.property_id AND<br />
    tkg_property.id = tkg_property_media.property_id AND<br />
    tkg_property.school_district_id = tkg_school_district.id AND<br />
    tkg_property.town_id = tkg_town.id AND<br />
    tkg_property_media.order = 1 AND<br />
    tkg_property.active != 0]]></description>
            <dc:creator>Lance Monotone</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 20:09:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292510,292510#msg-292510</guid>
            <title>mysqlreport, com_change_db value (no replies)</title>
            <link>http://forums.mysql.com/read.php?10,292510,292510#msg-292510</link>
            <description><![CDATA[ hi,<br />
<br />
this is the result of mysqlreport (mysql 5 + php5 [PEAR:DB] )<br />
<br />
why com_ (change_db) is so high???<br />
<br />
I'd appreciate any other recommendations<br />
<br />
thank you very much<br />
<br />
__ Key _________________________________________________________________<br />
Buffer used   246.00k of  16.00M  %Used:   1.50<br />
  Current       1.95M            %Usage:  12.16<br />
Write hit     100.00%<br />
Read hit       99.74%<br />
<br />
__ Questions ___________________________________________________________<br />
Total          62.71M   175.2/s<br />
  <strong class="bbcode">Com_         31.36M</strong>    87.6/s  %Total:  50.00<br />
  QC Hits      24.02M    67.1/s           38.30<br />
  DMS           6.42M    18.0/s           10.24<br />
  COM_QUIT    905.34k     2.5/s            1.44<br />
  +Unknown      6.05k     0.0/s            0.01<br />
Slow 5 s       11.52k     0.0/s            0.02  %DMS:   0.18  Log:  ON<br />
DMS             6.42M    18.0/s           10.24<br />
  <strong class="bbcode">SELECT        5.94M</strong>    16.6/s            9.48         92.54<br />
  UPDATE      476.13k     1.3/s            0.76          7.41<br />
  INSERT        2.53k     0.0/s            0.00          0.04<br />
  DELETE          440     0.0/s            0.00          0.01<br />
  REPLACE           0       0/s            0.00          0.00<br />
Com_           31.36M    87.6/s           50.00<br />
  <strong class="bbcode">change_db    31.35M</strong>    87.6/s           49.99<br />
  set_option    2.60k     0.0/s            0.00<br />
  show_fields   2.04k     0.0/s            0.00<br />
<br />
__ SELECT and Sort _____________________________________________________<br />
Scan          303.36k     0.8/s %SELECT:   5.10<br />
Range           1.13M     3.2/s           18.99<br />
Full join          64     0.0/s            0.00<br />
Range check         0       0/s            0.00<br />
Full rng join       0       0/s            0.00<br />
Sort scan     898.94k     2.5/s<br />
Sort range      2.33M     6.5/s<br />
Sort mrg pass   3.21k     0.0/s<br />
<br />
__ Query Cache _________________________________________________________<br />
Memory usage   84.89M of 128.00M  %Used:  66.32<br />
Block Fragmnt  20.68%<br />
Hits           24.02M    67.1/s<br />
Inserts         5.37M    15.0/s<br />
Insrt:Prune   12.76:1    13.8/s<br />
Hit:Insert     4.47:1<br />
<br />
__ Table Locks _________________________________________________________<br />
Waited             38     0.0/s  %Total:   0.00<br />
Immediate      13.57M    37.9/s<br />
<br />
__ Tables ______________________________________________________________<br />
Open             1076 of 2048    %Cache:  52.54<br />
Opened          1.08k     0.0/s<br />
<br />
__ Connections _________________________________________________________<br />
Max used           36 of   90      %Max:  40.00<br />
Total         905.34k     2.5/s<br />
<br />
__ Created Temp ________________________________________________________<br />
Disk table    636.01k     1.8/s<br />
Table           2.50M     7.0/s    Size: 128.0M<br />
File            2.10k     0.0/s<br />
<br />
__ Threads _____________________________________________________________<br />
Running             4 of    4<br />
Cached             32 of   64      %Hit:    100<br />
Created            36     0.0/s<br />
Slow                0       0/s<br />
<br />
__ Aborted _____________________________________________________________<br />
Clients             0       0/s<br />
Connects            1     0.0/s<br />
<br />
__ Bytes _______________________________________________________________<br />
Sent          177.42M   495.8/s<br />
Received        1.58G    4.4k/s<br />
<br />
__ InnoDB Buffer Pool __________________________________________________<br />
Usage         763.08M of 900.00M  %Used:  84.79<br />
Read hit      100.00%<br />
Pages<br />
  Free          8.76k            %Total:  15.21<br />
  Data         48.44k                     84.10 %Drty:   0.08<br />
  Misc            394                      0.68<br />
  Latched           0                      0.00<br />
Reads         571.13M    1.6k/s<br />
  From file    27.98k     0.1/s            0.00<br />
  Ahead Rnd         3     0.0/s<br />
  Ahead Sql       364     0.0/s<br />
Writes          5.29M    14.8/s<br />
Flushes         2.02M     5.6/s<br />
Wait Free           0       0/s<br />
<br />
__ InnoDB Lock _________________________________________________________<br />
Waits              70     0.0/s<br />
Current             0<br />
Time acquiring<br />
  Total          6796 ms<br />
  Average          97 ms<br />
  Max             583 ms<br />
<br />
__ InnoDB Data, Pages, Rows ____________________________________________<br />
Data<br />
  Reads        28.86k     0.1/s<br />
  Writes        2.49M     6.9/s<br />
  fsync       681.08k     1.9/s<br />
  Pending<br />
    Reads           0<br />
    Writes          0<br />
    fsync           0<br />
<br />
Pages<br />
  Created         303     0.0/s<br />
  Read         48.14k     0.1/s<br />
  Written       2.02M     5.6/s<br />
<br />
Rows<br />
  Deleted          91     0.0/s<br />
  Inserted      2.15k     0.0/s<br />
  Read          2.26G    6.3k/s<br />
  Updated     472.54k     1.3/s]]></description>
            <dc:creator>pepejose pepejose</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 17:35:18 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292504,292504#msg-292504</guid>
            <title>Help with copying database (4 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292504,292504#msg-292504</link>
            <description><![CDATA[ I really need someone to help explain how I copy an entire sql database with its contents to another sql database.  I have tried exporting and importing and all I get are errors.]]></description>
            <dc:creator>Barbara Davis</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 19:23:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292497,292497#msg-292497</guid>
            <title>How to resolve this problem? (2 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292497,292497#msg-292497</link>
            <description><![CDATA[ Hi Friends,<br />
            I'm new to my Mysql. I have stuck with a problem, Can anyone guide me how to resolve this.<br />
I have two table<br />
<br />
Employee (table1)<br />
Emp_id(Primary Key)  Name     Company      Salary<br />
<br />
Expenditure(Table2)<br />
Emp_id(foreign key) Amount      Date        Description<br />
<br />
Now the thing is, whenever i make a amount entry in expenditure table the corresponding salary must be deducted in Employee Table.<br />
<br />
So, I do not know how to implement. Can anyone help me about this.<br />
<br />
<br />
Regards<br />
Rakesh]]></description>
            <dc:creator>Rakesh SS</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 17:24:35 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292492,292519#msg-292519</guid>
            <title>Character set problem (-1 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292492,292519#msg-292519</link>
            <description><![CDATA[  -- moved topic -- ]]></description>
            <dc:creator>Alex NS</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 16:46:21 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292483,292483#msg-292483</guid>
            <title>Joining multiple tables in database (4 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292483,292483#msg-292483</link>
            <description><![CDATA[ Hi everyone,<br />
<br />
I'm sorry to post this topic, but I haven't had too much luck finding a basic answer.  I have three tables that I'd like to join together when doing a query.  The tables are:<br />
<br />
Composer_Info<br />
Track_Info<br />
Current_License<br />
<br />
and their respective primary keys are: <br />
<br />
composerid<br />
trackid<br />
currentid<br />
<br />
For example, let's say a query on all currently licensed tracks from the Current_License table comes back with the following:<br />
<br />
Composer: 1840<br />
Job Number: 250<br />
Track Title: AT&amp;T Blackberry Jingle<br />
Length: 1 x :30<br />
Company: AT&amp;T<br />
Client: Joe Cellphone<br />
License Duration: 13 Weeks<br />
License Start: November 2, 2009<br />
License End: February 1, 2010<br />
<br />
I would like the user to be able to click on any of the fields to provide more detailed information i.e. if they clicked on the &quot;Composer&quot; number, they would get a list of all tracks written by that composer.  Or if they clicked on the &quot;Job Number&quot;, they'd be able to cross-reference all of the details from that job.  <br />
<br />
Any help would be greatly appreciated and please let me know if I can provide anything else.<br />
<br />
Thank you!!]]></description>
            <dc:creator>Joanna K</dc:creator>
            <category>Newbie</category>
            <pubDate>Tue, 24 Nov 2009 16:11:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292469,292469#msg-292469</guid>
            <title>Allow limited number of duplicates in the table (6 replies)</title>
            <link>http://forums.mysql.com/read.php?10,292469,292469#msg-292469</link>
            <description><![CDATA[ Hello,<br />
<br />
I have been searching for this around and couldn't get an answer. <br />
<br />
I have a table with some fields and P_ID is not a key of any type.<br />
<br />
Fields: P_ID, P_GROUP, P_NAME, P_VALUE<br />
<br />
Here, I want to restrict the duplication of P_ID for not more than 10 times. Is there a way in MySQL to restrict this?<br />
<br />
Thanks,<br />
<br />
-Cross]]></description>
            <dc:creator>Cross DeLena</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 18:22:39 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?10,292466,292466#msg-292466</guid>
            <title>How to specify a parameter type &amp;quot;like&amp;quot; a table column (1 reply)</title>
            <link>http://forums.mysql.com/read.php?10,292466,292466#msg-292466</link>
            <description><![CDATA[ I was wondering if anyone knows of a way to set the &quot;type&quot; of a parameter in a stored procedure to be like a field in a table. The idea is that I want to avoid field length issues if the field size changes in the table into which it will be inserted. <br />
<br />
This is possible in Oracle:<br />
<br />
create or replace procedure  &lt;name&gt;<br />
(a_parameter IN &lt;table&gt;.&lt;field&gt;%TYPE)<br />
AS<br />
--variables<br />
v_parameter &lt;table&gt;.&lt;field&gt;%TYPE;<br />
BEGIN<br />
END;<br />
<br />
Does MySQL support this? I checked the documentation on &quot;Create Procedure&quot;; however, I don't see any detail on the options for &quot;type&quot;.<br />
<br />
Thanks in advance for your replies!<br />
<br />
Milan]]></description>
            <dc:creator>Milan Zdimal</dc:creator>
            <category>Newbie</category>
            <pubDate>Mon, 23 Nov 2009 14:01:12 +0000</pubDate>
        </item>
    </channel>
</rss>
