Forum: MySQL Sep 10th, 2009 |
| Replies: 6 Views: 449 |
Forum: MySQL Sep 2nd, 2009 |
| Replies: 5 Views: 724 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: 425 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: 597 Check what is causing the locking...
Post your Show Global Status |
Forum: MySQL Apr 29th, 2009 |
| Replies: 1 Views: 622 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,055 Try this
SELECT
budget.budget_name,
total.fundlink.fundlink_amt
FROM
budget
Left Join
( |
Forum: MySQL Apr 13th, 2009 |
| Replies: 2 Views: 879 Take a note all binary collation are case sensitive |
Forum: MySQL Apr 13th, 2009 |
| Replies: 3 Views: 931 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: 695 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,062 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,224 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: 579 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: 533 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,461 simple way is to comment the first query
Use -- and a space to comment |
Forum: MySQL Dec 1st, 2008 |
| Replies: 1 Views: 666 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: 608 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: 578 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: 465 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: MS SQL Oct 16th, 2008 |
| Replies: 2 Views: 519 If u can have down time for the current database then try detach and attach
it will be easy and fast |
Forum: MS SQL Oct 14th, 2008 |
| Replies: 3 Views: 966 |
Forum: MySQL Oct 10th, 2008 |
| Replies: 5 Views: 2,616 SELECT is missing "T"
query will give correct results |
Forum: MySQL Oct 3rd, 2008 |
| Replies: 1 Views: 548 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: 583 |
Forum: MS SQL Oct 1st, 2008 |
| Replies: 0 Views: 870 Say we have a table with 1000 rows
and there is no column which can identify a row(i mean no Identity or unique column)
now if we want to select a set of rows from this table how can we do that?... |
Forum: MySQL Sep 24th, 2008 |
| Replies: 7 Views: 1,396 Try Msql Migration Toolkit,its a free download on mysql site
its the easier way |
Forum: MySQL Sep 22nd, 2008 |
| Replies: 1 Views: 878 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: 720 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,252 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,131 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,920 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,920 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,920 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: 707 Try this
update table1 set address=left(address,(locate(',',address) -1)) |
Forum: MySQL Sep 10th, 2008 |
| Replies: 11 Views: 1,214 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,214 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: 743 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: 468 #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,420 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,298 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... |