Forum: MySQL Sep 10th, 2009 |
| Replies: 6 Views: 456 |
Forum: MySQL Sep 2nd, 2009 |
| Replies: 5 Views: 732 work around would be to
Create a column CaptureDate of type varchar or char
once import is done u can update the data and get it in date time format |
Forum: MySQL Sep 2nd, 2009 |
| Replies: 1 Views: 440 Save the image in the database as type BLOB
and Load the image file and read the file into a variable using file_get_contents() or similar
but best way is not to save image directly in Database... |
Forum: MySQL May 5th, 2009 |
| Replies: 1 Views: 599 Check what is causing the locking...
Post your Show Global Status |
Forum: MySQL Apr 29th, 2009 |
| Replies: 1 Views: 627 Try this way
put this line in my.cnf file and bin logging will be enabled
log-bin=/home/Bin_Log
This command is not to start Mysql but to connect to Mysql
if you Mysql installed as... |
Forum: MySQL Apr 29th, 2009 |
| Replies: 5 Views: 1,061 Try this
SELECT
budget.budget_name,
total.fundlink.fundlink_amt
FROM
budget
Left Join
( |
Forum: MySQL Apr 13th, 2009 |
| Replies: 2 Views: 890 Take a note all binary collation are case sensitive |
Forum: MySQL Apr 13th, 2009 |
| Replies: 3 Views: 955 Try this for Database Size or Table Size :
SELECT TABLE_NAME,ROUND((DATA_LENGTH/1024)/1024) AS DATA_SIZE,ROUND((INDEX_LENGTH/1024)/1024) AS INDEX_SIZE,ROUND(((DATA_LENGTH/1024)/1024) +... |
Forum: MySQL Feb 5th, 2009 |
| Replies: 1 Views: 711 You can do it by a sp or from Mysql Administrator
I generally do it from Sp
DELIMITER $$
DROP PROCEDURE IF EXISTS `reports`.`SP_Mysql_Maintance_Plan_Optimize_Tables`$$
CREATE PROCEDURE... |
Forum: MySQL Feb 4th, 2009 |
| Replies: 6 Views: 1,075 What does the error message say?
It depends on your error message
if its says access denied then it the problem with mysql /username/password
but if its saying can't reach mysql server its the... |
Forum: MySQL Feb 3rd, 2009 |
| Replies: 3 Views: 1,249 Create ID column in second table
and run a update query on second table with joining both the tables,so all values in ID column will be update in second table properly
come back and drop column in... |
Forum: MySQL Feb 3rd, 2009 |
| Replies: 2 Views: 584 Use Left outer Join
SELECT bookings.*,times.slotId FROM bookings
left outer join time
on bookings.slotId=time.slotId
WHERE bookings.date='$date' AND bookings.stylist='$stylist'
ORDER BY... |
Forum: MySQL Dec 19th, 2008 |
| Replies: 1 Views: 539 Try this
SELECT consultants.name
, consultants.surname
, consultants.cell_number
, consultants.id_number
,points.id_number
FROM consultants
LEFT OUTER JOIN points
on points.id_number... |
Forum: MySQL Dec 2nd, 2008 |
| Replies: 2 Views: 1,498 simple way is to comment the first query
Use -- and a space to comment |
Forum: MySQL Dec 1st, 2008 |
| Replies: 1 Views: 673 1.
mysql> EXPLAIN SELECT avg(participation_score)*2 FROM yk_participation_score,yk_contributor WHERE yk_participation_score.user_id = yk_contributor.user_id
mysql> EXPLAIN select... |
Forum: MySQL Dec 1st, 2008 |
| Replies: 1 Views: 614 Rather than Joining all 3 into 1 and complicating things u can add some index to tables and optimize select queries to executing will be faster
INSERT INTO `yk_contributor_aging` ( contributor_id,... |
Forum: MySQL Dec 1st, 2008 |
| Replies: 2 Views: 583 If there are small number of rows in a table u can go with Like '%a%'
else you need to try full text index |
Forum: MySQL Nov 5th, 2008 |
| Replies: 2 Views: 469 See if you force mysql to use index
EXPLAIN SELECT
tb1.Name
FROM
tb1, tb2 force index(t1.name)
WHERE
tb1.Name = tb2.Name;
and also check it name column is of... |
Forum: MySQL Oct 10th, 2008 |
| Replies: 5 Views: 2,676 SELECT is missing "T"
query will give correct results |
Forum: MySQL Oct 3rd, 2008 |
| Replies: 1 Views: 555 I didn't understand the post completely
but from what i got :
Access denied for user 'ODBC'@'localhost' (using password: NO).
As the Error Say
You are trying to access Mysql with out... |
Forum: MySQL Oct 3rd, 2008 |
| Replies: 2 Views: 589 |
Forum: MySQL Sep 24th, 2008 |
| Replies: 7 Views: 1,414 Try Msql Migration Toolkit,its a free download on mysql site
its the easier way |
Forum: MySQL Sep 22nd, 2008 |
| Replies: 1 Views: 884 Plz post table structure
if you have any matching fields in both the tables say Org_ID
you can use a join to get the data if the format you specified |
Forum: MySQL Sep 22nd, 2008 |
| Replies: 2 Views: 725 how about
select product_id from orders where order_id=?
This will give you all product_ids for a order |
Forum: MySQL Sep 19th, 2008 |
| Replies: 1 Views: 1,275 I guess you cant do that
DB should know how to join 2 tables or else it will join with all rows in both the tables |
Forum: MySQL Sep 19th, 2008 |
| Replies: 3 Views: 1,147 INSERT INTO TempTime1 (NOM,Tday,Ttime,Ttindex) SELECT * FROM time1 WHERE days AND times NOT IN (SELECT * FROM timetable1_1)
Few things to note here
you are inserting values into 4 columns of... |
Forum: MySQL Sep 19th, 2008 |
| Replies: 7 Views: 1,946 select
leave_Type,
emp_Leave_From,
emp_Leave_To,
emp_Leave_Days
from leave_details
inner join leave_eli
on leave_details.leave_Type_Id=leave_eli.leave_Type_Id
inner join leave_cri
... |
Forum: MySQL Sep 19th, 2008 |
| Replies: 7 Views: 1,946 leave_cri:typs of leave allowd 4 an emp
leave_eli:all typ of leaves
leave_detail:details of leave taken by an emp
Does leave_cri has any emp id or some column to identify specific leaves are... |
Forum: MySQL Sep 19th, 2008 |
| Replies: 7 Views: 1,946 select leave_Type,emp_Leave_From,emp_Leave_To,emp_Leave_Days from leave_details inner join leave_eli on leave_details.leave_Type_Id=leave_eli.leave_Type_Id
inner join leave_cri on... |
Forum: MySQL Sep 15th, 2008 |
| Replies: 2 Views: 711 Try this
update table1 set address=left(address,(locate(',',address) -1)) |
Forum: MySQL Sep 10th, 2008 |
| Replies: 11 Views: 1,231 Than Configuration step just adds path to mysql\Bin folder in environmental variables
example : %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Program_Files\MySQL\MySQL Server... |
Forum: MySQL Sep 10th, 2008 |
| Replies: 11 Views: 1,231 Or you can simply drive to your mysql installation folder and to bin folder
and try
mysql -u root -p |
Forum: MySQL Sep 10th, 2008 |
| Replies: 2 Views: 746 Or you can use password('$password')
you can use this while inserting in database and then to compare the text entered by user |
Forum: MySQL Sep 9th, 2008 |
| Replies: 2 Views: 471 #1045 - Access denied for user 'root'@'localhost' (using password: NO)
Error Say Password is not provided
"using password: NO"
check your connection string |
Forum: MySQL Sep 5th, 2008 |
| Replies: 6 Views: 1,442 This is how i goes
Select
Student.stud_id,
Student.stud_name,
Max(subject.marks)
from Student, subject, stud_sub
where sum(marks)<
( Select Max(sum(marks)) from student, subject,... |
Forum: MySQL Sep 4th, 2008 |
| Replies: 3 Views: 1,301 Just My taught
@out variable means you are creating a temporary variable
Temporary variables are connection specific
make sure these both are executed on one connection
$query = "CALL... |
Forum: MySQL Sep 4th, 2008 |
| Replies: 3 Views: 1,301 Why cant you run a single query
SELECT name FROM table WHERE name=name_in;
Some thing like this....
$sql = "SELECT name FROM table WHERE nam='$name_out'";
$result = mysql_query($sql,... |
Forum: MySQL Aug 27th, 2008 |
| Replies: 2 Views: 932 I Guess Mirroring is a Sql Server 2005 concept,
In Mysql only way you can maintain a Hot Backup is by replication(As per my knowledge) |
Forum: MySQL Aug 27th, 2008 |
| Replies: 24 Views: 1,596 If you can type all the column names you can get the default avatar_id(1)
Try this :
SELECT members.*,ifnull(avatar_id,1) FROM members
left outer join avatars
on... |