473,466 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to delete double quote from a string?

kirubagari
158 New Member
I got list of the date that have double qoute.

Item_Description Table"BACARDI GOLD 1.0L"
"DUNHILL RED KSF"
"PASSPORT 0.75L"
"MILD 7 CHAR FILTER BOX"
"DEWARS WHI 12YRS 1.0L"

I wana write query that read if item description have double qoute and replaced with nothing and display the string without the double qoute..How to write the query in SQL?

Expand|Select|Wrap|Line Numbers
  1. update * from dbo.MMM_Product_Item
  2. set Description=' '
SOMEONE HELP ME!!
Nov 16 '10 #1
4 5879
gpl
152 New Member
Look up the REPLACE function
Nov 16 '10 #2
kirubagari
158 New Member
Hai Gpl,

Replace function in SQL query can be done?
Nov 16 '10 #3
kirubagari
158 New Member
Expand|Select|Wrap|Line Numbers
  1. Select Replace(Description,'"',' ')
  2. From dbo.MMM_Product_Item
Hai kindly help me on this...wheater its correct or not
Nov 16 '10 #4
kirubagari
158 New Member
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO NewItemFromSheet ( Prod_Category_Code, Prod_Brand_Code, Prod_Brand_Desc, Prod_SubCat_Code, Prod_SubCat_Desc, Item_Type, Acc_Set, Item_Description, [Retail _Price_RM], Unit_Cost_RM, Vendor_Code, Package_Unit, Unit, Qty_Of_Unit_Packing, Tax, Sale_Qty_By_Month, Custom_Code, Measurement, Unit_Code )
  2. SELECT [Chinastk2Master].[Prod_Category_Code] AS Expr1, [Chinastk2Master].[Prod_Brand_Code] AS Expr2, [Chinastk2Master].[Prod_Brand_Desc] AS Expr3, [Chinastk2Master].[Prod_SubCat_Code] AS Expr4, [Chinastk2Master].[Prod_SubCat_Desc] AS Expr5, [Chinastk2Master].[Item_Type] AS Expr6, [Chinastk2Master].[Acc_Set] AS Expr7, [Chinastk2Master].[Item_Description] AS Expr8, [Chinastk2Master].[Retail _Price_RM] AS Expr9, [Chinastk2Master].[Unit_Cost_RM] AS Expr10, [Chinastk2Master].[Vendor_Code] AS Expr11, [Chinastk2Master].[Package_Unit] AS Expr12, [Chinastk2Master].[Unit] AS Expr13, [Chinastk2Master].[Qty_Of_Unit_Packing] AS Expr14, [Chinastk2Master].[Tax] AS Expr15, [Chinastk2Master].[Sale_Qty_By_Month] AS Expr16, [Chinastk2Master].[Custom_Code] AS Expr17, [Chinastk2Master].[Measurement] AS Expr18, [Chinastk2Master].[Unit_Code] AS Expr19
  3. FROM Chinastk2Master
  4.  
  5.  
  6.  
  7. Select [Chinastk2Master].[Item_Description],replace [Chinastk2Master].[Item_Description],'"','') 
  8. from Chinastk2Master 
  9.  
  10.  Update Chinastk2Master set  [Chinastk2Master].[Item_Description] = replace( [Chinastk2Master].[Item_Description],'"','');
  11.  

Kindly help me how i can use the item description condiction and put in the first query
Nov 16 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Alden Streeter | last post by:
Here is the HTML that is being output by my asp page: <a href='Files/category/computers/bigimages/computers-sub-monitors.jpg' target='_blank' onMouseOver="window.status='Click for a larger image...
1
by: davegraham_1998 | last post by:
Hi All- I'm pretty sure this have been discussed earlier, but couldn't find a solution to my problem. <input type="submit" value="Delete Parts" onclick="return handleDeleteParts('ABC', 'MY...
8
by: Ahmad A. Rahman | last post by:
Hi all, I have a problem constructing a regular expression using .net. I have a string, separated with comma, and I want to group the string together but, I failed to group a numeric character...
4
by: fred | last post by:
Hi, is there a way to put " (double quote) into a verbatin string? thank you
4
by: Kevin Thomas | last post by:
Hi there, If I have a string var, strFoo that contains double-quotes such that it looks like this: I "love" VB What do I pass into the "replace" method to replace the double-quotes with...
9
by: Huy | last post by:
I've been unable to find information clarifying this but. What is the difference between 'somestring' and "somestring"? When I use type() it still reports as string. If there is a difference...
3
by: John Sitka | last post by:
32.0 transformed to 000000320000000000 I guess the above would be equivalent to an numeric(18,10) datatype the first 8 digits represent the whole part of the double the last 10 represent the...
4
by: zacks | last post by:
I need to check the current value of a string value to see if it either starts with or ends with a double quote character, as in "123" (where the quotes are actual contens of the string). I thought...
2
by: yogi_bear_79 | last post by:
I have a double of unknown length that I need to split at the decimal. I thought I would convert it either to a string or a char. char seems to be the best since it easily lends itself to...
2
by: Lior Bobrov | last post by:
Hi ... How to convert a variable of type Double to String , *preserving* the original value of the Double variable , as is , in a short (convenient) way ? For example , if there are two...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.