0beginselect @source = stuf. How can you change to get the decimal separator as comma instead of the decimal point (.)? Use stuff(convert(varchar,qty),charindex(".",convert(varchar,qty)),1,",") declare @source varchar(30)select @source = "10.236.155.17"while charindex(".",@source) > 0beginselect @source = stuf . 2 members have posted answers.">
GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Database  >  Sybase
Go To First  |  Previous Question  |  Next Question 
 Sybase  |  Question 42 of 64    Print  
How can you change to get the decimal separator as comma instead of the decimal point (.)?

  
Total Answers and Comments: 2 Last Update: June 25, 2008     Asked by: Sarathy 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 19, 2007 16:44:09   #1  
dkreddi Member Since: September 2007   Contribution: 1    

RE: How can you change to get the decimal separator as...
Use stuff(convert(varchar qty) charindex("." convert(varchar qty)) 1 " ")
 
Is this answer useful? Yes | No
June 24, 2008 08:10:23   #2  
debadritab Member Since: June 2008   Contribution: 1    

RE: How can you change to get the decimal separator as comma instead of the decimal point (.)?

declare @source varchar(30)

select @source 10.236.155.17

while charindex( . @source) > 0

begin

select @source stuff(@source charindex( . @source) 1 )

end

select @source


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : The numeric and decimal typesare identical in all respects but one: Only numeric types with a scale of 0can be used for the IDENTITY column. ...
Read Answers (1) | Asked by : Binay

Latest Answer : There are only two options to clear the log1) Kill the tran which is filling up the log2) Extend the transaction log to complete the transaction.don't use 'dump with truncate_only' if you have tran dump job setup. I would also stop and restart ...
Read Answers (2) | Asked by : srihari

Latest Answer : declare @source varchar(30) select @source = "10.236.155.17" while charindex(".",@source) > 0 begin select @source = stuff(@source,charindex(".",@source),1,",") end select @source ...
Read Answers (2) | Asked by : Sarathy

Latest Answer : In pre sybase 15 all database options will take effect after a use database and checkpoint command is run.For Sybase 15 the option take effect immediately since all sp_dboption commands have an automatic checkpoint. ...
Read Answers (1) | Asked by : srihari


 Sponsored Links

 
Related Articles

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

Point to Point Protocol (PPP)

Point to Point Protocol PPP The Point to Point Protocol is a platform that is used to connect any individual computer or a network to the internet service provider The connection is established between two points only and that is why it is called Point to Point Protocol The PPP is considered be the
 

What is Change Data Capture

Change Data Capture refers to the process of capturing changes which are made to a production data source. Change Data Capture is typically performed by reading the source of database management software logs. Some of the features of Change Data Capture are It consolidates units of works En
 

What is Access Point

An access point (AP; or also "WAP" for "wireless access point") is a node responsible for the formation of a wireless network through connection between wireless communication devices. It acts as a central transmitter and receiver of wireless radio signals, and is
 

What is Operational Database

Operational Database is the database-of-record, consisting of system-specific reference data and event data belonging to a transaction-update system. It may also contain system control data such as indicators, flags, and counters. The operational database is the source of data for the data warehouse
 

Evolution of database systems

The Evolution of Database systems File Management System Hierarchical database System  Network Database System  Relational Database System File Management System: The file management system also called as FMS in short is one in which all data is stored on a singl
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape