Sorry if this is a duplicate question, I'm a total database newbie and I'm probably using the wrong terminology to search for answers.
I have a MySQL table as follows:
+------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+---------------+------+-----+--...
Hi to all. First off, I'm new to MySQL Cluster. This is my pain:
I've managed to setup a MySQL Cluster with two data nodes, two SQL nodes and one management server. Everything works pretty well, except the following: my data nodes are spread across an intranet link which incurs latency into communications between the data nodes. Apparent...
Here is some example data in a mysql table
a b distance
15 44 250
94 31 250
30 41 250
6 1 250
95 18 250
72 84 500
14 23 500
55 24 500
95 8 500
59 25 500
40 73 500
65 85 500
32 50 500
31 39 500
22 25 500
37 11 750
98 39 750
15 57 750
9 22 750
14 44 750
69 22 750
62 50 750
89 35 750
67...
Hello,
Im trying to insert data into a table in MySQL. I found/modified some code from w3Schools and still couldn't get it working. Heres what I have so far:
<?php
$rusername=$_POST['username'];
$rname=$_POST['name'];
$remail=$_POST['emailadr'];
$rpassword=$_POST['pass'];
$rconfirmpassword=$_POST['cpass'];
if ($rpassword==$rconfirmpa...
I have a mySQL table of events and want to display them in a list using PHP. Pretty simple, except I only want to display the month name once, for example:
May 2010
12th, 7 pm. Event 1 - event one description
15th, 5:30 pm. Event 2 - event two description
June 2010
9th, 7 pm. Event 1 - event one description
11th, 5:30 pm...
Hello, I'm completely stumped on this one. For some reason when I sort this query by DESC it's super fast, but if sorted by ASC it's extremely slow.
This takes about 150 milliseconds:
SELECT posts.id
FROM posts USE INDEX (published)
WHERE posts.feed_id IN ( 4953,622,1,1852,4952,76,623,624,10 )
ORDER BY posts.published DESC
LIMIT 0, 50...
I am using a sharded db - horizontally partitioned. I am using the DataFabric gem from FiveRuns.
What would be the implications of using memcached on this? Would it work the same as if I was using ActiveRecord?
...
I have this table. I want to select back the items that don't exist already, so I can create them.
table tags
+---------+-------+
| tagId | name |
| 1 | C |
| 2 | DX |
| 3 | CG |
Say SQL looks like:
select name from tags where name in ( 'C', 'CG', 'RX' )
You get back 'C' and 'CG', so you know you h...
I'm doing it this way,but get an error:
mysql> update products set products_image=(select products_image from products where products_id=2) where products_id=3;
ERROR 1093 (HY000): You can't specify target table 'products' for update in FROM clause
...
I make a application, which has to interfaces. one is desktop and other is web application.
both have their own databases (which are same is structure).
I want to sync the database from desktop to remote server and also from remote server to desktop but i have no idea that how it does.
I use the MYSql database. and my desktop applicati...
I make a application, which has to interfaces. one is desktop and other is web application. both have their own databases (which are same is structure).
I want to sync the database from desktop to remote server and also from remote server to desktop but i have no idea that how it does.
I use the MYSql database. and my desktop applicati...
Hi, I created a web application with asp.net 3.5 and ado.net entity framework WebForms 1, but have not yet succeeded in creating a memebrship and roles.
When I go on ASP.NET Configuration and click the Security Tab I get the following error: Keyword not supported. Parameter name: metadata
Someone has already created an application with...
I have an SQL query which returns a set of data (around 40-50 tuples).
I would like to display the results 5 at a time on an HTML page using PHP.
I already managed to have the right SELECT statement, but i am having problems to display the results 5 by 5 using a "more" button.
Can you please help?
Note that every time i call the query,...
Hi,
I have a simple users table, i guess the maximum users i am going to have is 300,000.
Currently i am using:
CREATE TABLE users
(
id INT UNSIGEND AUTOINCEREMENT PRIMARY KEY,
....
Of course i have many other tables that the users(id) is a FOREIGN KEY in them.
I read that since the id is not going to use the f...
When the user check more than one (checkbox) option which are then combine into a string of "apple,orange,pear"
SELECT id, pos, FROM $db WHERE dtime>='$now' AND jsub IN ('$arr[1]') ;
When I pass the string to $arr[1], it won't work correctly, how do I split into array and get mysql IN function to process correctly?
...
I have the table and values like this,
CREATE TABLE `category` (
`id` INT( 4 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`category` VARCHAR( 50 ) NOT NULL ,
`parent` INT( 4 ) NOT NULL
)
INSERT INTO `category` VALUES (1, 'MCA', 9);
INSERT INTO `category` VALUES (2, 'M Tech', 9);
INSERT INTO `category` VALUES (3, 'B Tech', 9);
INSERT INTO `c...
Hello everyone i currently have this:
import feedparser
d = feedparser.parse('http://store.steampowered.com/feeds/news.xml')
for i in range(10):
print d.entries[i].title
print d.entries[i].date
How would i go about making it so that the title and date are on the same line? Also it doesn't need to print i just have that in the...
I have a pesky table that will not delete and it's holding up my dev environment refresh :(
I know this table exists. Example...
mysql> select * from uc_order_products_qty_vw limit 10;
+-----+-------------+---------+---------+---------+---------+
| nid | order_count | avg_qty | sum_qty | max_qty | min_qty |
+-----+-------------+-------...
how to connect asp.net Crystal report with mysql database. like sql server database connection .is there any connector available to do this..
...
The code below is first the client code, then the class file.
For some reason the 'deductTokens()' method is calling twice, thus charging an account double.
I've been programming all night, so I may just need a second pair of eyes:
if ($action == 'place_order') {
if ($_REQUEST['unlimited'] == 200) {
$license = 'extend...