473,410 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Backslash in data/query and like queries help needed

mySQL 4.0.20a WIN32

Need help with backslash syntax/like queries..

Query1:
select * from dbtable1 where Filespec like 'http://www.10291.com/%'
returns : http://www.10921.com/sikhnet/register.nsf/ram/radioG2/\$File

Query2:
select * from dbtable1 where Filespec
='http://www.10921.com/sikhnet/register.nsf/ram/radioG2/\$File'
returns 0 records

Query3:
select * from dbtable1 where Filespec like '%\\%';
returns 0 records

What am I missing here....?
Something really strange happens when a record has a backslash in it....
How is it I can run Query1 and not Query2, Query3...????
Feel free to also reply via email

cs********@hotmail.com
-Craig

Jul 20 '05 #1
1 2108
> select * from dbtable1 where Filespec like 'http://www.10291.com/%'

Correction (i meant 10921) replaced for security/privacy reasons in original
message...
I think you get the idea though...

-Craig

"Craig Stadler" <cs********@hotmail.com> wrote in message
news:ic*********************@news.easynews.com...
mySQL 4.0.20a WIN32

Need help with backslash syntax/like queries..

Query1:
select * from dbtable1 where Filespec like 'http://www.10291.com/%'
returns : http://www.10921.com/sikhnet/register.nsf/ram/radioG2/\$File

Query2:
select * from dbtable1 where Filespec
='http://www.10921.com/sikhnet/register.nsf/ram/radioG2/\$File'
returns 0 records

Query3:
select * from dbtable1 where Filespec like '%\\%';
returns 0 records

What am I missing here....?
Something really strange happens when a record has a backslash in it....
How is it I can run Query1 and not Query2, Query3...????
Feel free to also reply via email

cs********@hotmail.com
-Craig


Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ryan | last post by:
We have an MIS system which has approx 100 reports. Each of these reports can take up to several minutes to run due to the complexity of the queries (hundreds of lines each in most cases). Each...
6
by: Steve | last post by:
I realize that this probably isn't a best practice, but I'm working with legacy code that has a query stored in one column of a table. Because the queries vary, the JSP page that selects a query...
0
by: Christoph Haas | last post by:
Hi, list... I have written an application in Perl some time ago (I was young and needed the money) that parses multiple large text files containing nested data structures and allows the user to...
9
by: sellcraig | last post by:
Microsoft access 2 tables table "data main" contains a field called "code" table "ddw1" is created from a make table query of "data main" Goal- the data in "code" field in needs to...
8
by: Roland Hall | last post by:
In Access you use "*" + + "*", + can be replaced with & Calling a parameterized query in Access requires % be used in place of *, however, all that I have read show dynamic SQL passed to Access: ...
0
by: JosAH | last post by:
Greetings, Introduction Last week I was a bit too busy to cook up this part of the article series; sorry for that. This article part wraps up the Text Processing article series. The ...
2
by: sara | last post by:
I am helping a non-profit track their elder clients and care given to the clients. The organization would like a report that shows various info on ALL clients, such as: # in each town, # and...
28
by: Crombam | last post by:
Hi, I'm currently working on creating a DB for electricity readings. We have 42 meters wich are being read every month. Currently the Kwh used are being calculated in MS Excel®. However, due to...
2
bergy
by: bergy | last post by:
Background: We are collecting data and pushing it to MySQL at various intervals. Sometimes it may be every minute, other times every 15 minutes, and all ranges in between. This data is...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.