Search Results

Showing results 1 to 40 of 79
Search took 0.02 seconds.
Search: Posts Made By: varmadba
Forum: MySQL Sep 10th, 2009
Replies: 6
Views: 449
Posted By varmadba
Forum: MySQL Sep 2nd, 2009
Replies: 5
Views: 724
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
Check what is causing the locking...
Post your Show Global Status
Forum: MySQL Apr 29th, 2009
Replies: 1
Views: 622
Posted By varmadba
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
Posted By varmadba
Try this


SELECT
budget.budget_name,
total.fundlink.fundlink_amt
FROM
budget
Left Join
(
Forum: MySQL Apr 29th, 2009
Replies: 2
Views: 527
Posted By varmadba
Forum: MySQL Apr 13th, 2009
Replies: 2
Views: 879
Posted By varmadba
Take a note all binary collation are case sensitive
Forum: MySQL Apr 13th, 2009
Replies: 3
Views: 931
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
simple way is to comment the first query
Use -- and a space to comment
Forum: MySQL Dec 1st, 2008
Replies: 1
Views: 666
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
Forum: MySQL Oct 10th, 2008
Replies: 5
Views: 2,616
Posted By varmadba
SELECT is missing "T"
query will give correct results
Forum: MySQL Oct 3rd, 2008
Replies: 1
Views: 548
Posted By varmadba
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
Posted By varmadba
Post table structure
Forum: MS SQL Oct 1st, 2008
Replies: 0
Views: 870
Posted By varmadba
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
Posted By varmadba
Try Msql Migration Toolkit,its a free download on mysql site

its the easier way
Forum: MySQL Sep 22nd, 2008
Replies: 1
Views: 878
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
Try this

update table1 set address=left(address,(locate(',',address) -1))
Forum: MySQL Sep 10th, 2008
Replies: 11
Views: 1,214
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
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
Posted By varmadba
#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
Posted By varmadba
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
Posted By varmadba
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...
Showing results 1 to 40 of 79

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC