http://www.videojug.com/film/how-to-kiss-someone-passionately
http://www.5min.com/Video/Learn-different-kinds-of-kisses-1279
Internet is vague. It has nothing left to be covered now. However, things get messed up sometimes and I forgot where I used to find the materials I had just searched for some days ago. So, I am now gathering all those into this blog. This is just my bookmark or my scrapbook or anything you wish to say. If you think these are helpful, you can take references, no any rights to be defined here. No styles and no colorful designs, just an area to jot down some scraps and all. Enjoy
Pages
Sunday, March 23, 2008
Sunday, March 9, 2008
Error:1235- This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
If you try the following you will find it fails in mysql version 4.1,
SELECT
COUNT(*)
FROM
TABLE_1
WHERE
ROW (PK_PART_1, PK_PART_2) IN
(
SELECT
PK_PART_1, PK_PART_2
FROM
TABLE_2
LIMIT
10 -- This is the basis of the whole idea
)
AND
Whatever;
The above fails with the warning ...
ERROR 1235 (42000): This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
However, you can get the desired behaviour with a slight rewrite...
SELECT
COUNT(*)
FROM
TABLE_1
INNER JOIN
(
SELECT
PK_PART_1, PK_PART_2
FROM
TABLE_2
LIMIT
10 -- HEY HEY!
) AS VIRTUAL_TABLE_2
ON
TABLE_1.PK_PART_1 = TABLE_2.PK_PART_1 AND
TABLE_1.PK_PART_2 = TABLE_2.PK_PART_2
WHERE
Whatever;
And it works like a charm!
SELECT
COUNT(*)
FROM
TABLE_1
WHERE
ROW (PK_PART_1, PK_PART_2) IN
(
SELECT
PK_PART_1, PK_PART_2
FROM
TABLE_2
LIMIT
10 -- This is the basis of the whole idea
)
AND
Whatever;
The above fails with the warning ...
ERROR 1235 (42000): This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
However, you can get the desired behaviour with a slight rewrite...
SELECT
COUNT(*)
FROM
TABLE_1
INNER JOIN
(
SELECT
PK_PART_1, PK_PART_2
FROM
TABLE_2
LIMIT
10 -- HEY HEY!
) AS VIRTUAL_TABLE_2
ON
TABLE_1.PK_PART_1 = TABLE_2.PK_PART_1 AND
TABLE_1.PK_PART_2 = TABLE_2.PK_PART_2
WHERE
Whatever;
And it works like a charm!
Labels:
Command Help,
Errors,
function reference,
mysql,
Programming,
References,
Syntax
Sunday, March 2, 2008
Swap in Linux
Had a swap space allocated but it was not mounted as so, and my computer had regular memory problems.
So what I did was,
So what I did was,
- checked the swap partition first
- added the entry in /etc/fstab file as
- /dev/sda3 none swap sw 0 0
- sudo swapon -a
- checked by using cat /proc/swaps and it was found the following
- /dev/sda3 partition 1052248 423616 -1
Labels:
Command Help,
function reference,
HowTO,
Linux,
swap
Subscribe to:
Posts (Atom)