Hi,
Try to use single quotes to the string your appending.Like,
cmd.CommandText = "select Name,Website from ' " & category & "' where Name like " & " ' %" & value & "% ' " & " ;"
I marked it has bold with underline.
Try to check it out.It may work for you....
User Profile
Collapse
-
Hi,
for this you can try it like this,I want to know In which language your doing.
bcz string concatination isdiffer.
str=windows'xp'
cmd1.CommandTex t = "insert into table_a values(\"" & str & "\");"
try to use this.you have to give the quotation that to double quotes.bcz in your string you have single quote and no need to addslashes
prasanna...Leave a comment:
-
Hi,
I don't have any idea.If any boady knows then let me know.
prasannaLeave a comment:
-
Hi,
Select * from ayniyat_x group by hesap_kodu,duze y_1,duzey_2;
In this query we are using group by clause and the records are grouped based on these hesap_kodu,duze y_1,duzey_2 three values.and that to these three values should be same.
Thats what i am saying,With the example.
I think it was clear now!!!...Leave a comment:
-
Hi,
In the result set you may have some Quantitiy might be zero.So that two msgs will be displayed.If your desire out put is ,
whenever any one of the quantitity is zero then don;t display the form at all.
If this is the case then you can set the flag variable and assign the form to one variable.if the flag is set then display the msg otherwise display the form.
I think by this you can sort this problem....Leave a comment:
-
Hi,
The Code what you wrote is correct and its working.Execute once again!!
prasannaLeave a comment:
-
Hi,
I think your asking to get the data between the begining date and ending date.
and in your sql where condition syntax is what you wrote is wrong.
Are you using PHP to execute this query.
if yes,
$pfld_BegDate=" 2007/01/01";
$pfld_EndDate=" 2007/01/04";
"(effective date >=".$pfld_BegDa te." and effectivedate <=".$pfld_EndDa te.")"
...Leave a comment:
-
Hi,
if you have same values in hesap_kodu,duze y_1,duzey_2 these fileds then you can write query like this
Select * from ayniyat_x group by hesap_kodu,duze y_1,duzey_2;
then you will get one record which is having the same data for all fileds.
For example.
hesap_kodu duzey_1 duzey_2
1 1 1
2 1 1
1 1 ...Leave a comment:
-
Hi,
DML is to manipulating the data.
DDL is to manipulate the structure of the table.
By using select statement we are getting the data resides in the table.
So,select statement is come under DML.
If you want clear idea then you can reffer this site, http://www.w3schools.c om/sql/sql_intro.asp
prasannaLeave a comment:
-
Hi,
For this we have two methods by interating the loop we can copy the two arrays into third array or
By using the System.arraycop y() method.
For this go through this link so that you may get clear idea of it.
http://ftp.lanet.lv/javafaq/course/week2/31.html
Regards,
prasannaLeave a comment:
No activity results to display
Show More
Leave a comment: