Compare strings or numbers? Which option works faster?

Just have this doubt and I can't find good info on it. 

Which comparison took less time? If I compare strings or numbers (integers or decimals) to order data?

Many thanks.

5/5/2009 1:27:41 AM 91979 articles. 2 followers. Follow

2 Replies

Similar Articles

[PageSpeed] 4


Which comparison took less time? If I compare strings or numbers (integers or decimals) to order data?

int is Faster because string comparaision is overloaded by Microsoft require
which some checks,
is  you can find the Difference here,

            //String Comparision

            //int Comparision

We All move to our original place.
Don't forget.

Imran Baloch
5/5/2009 3:37:59 AM

 Previous post is right.

You get some info about it from here:

Ahsan Murshed
Please "Mark as Answered" if helpful for you.
5/5/2009 4:21:17 AM

Similar Artilces:

get an option via GET OPTION?
Hello, is there a way through ISQL that I can display the value of the BLOCKING option for the current user (not the public setting)? I see in the help example for GET OPTION that I enter "EXEC SQL GET OPTION optionname INTO :hostvarname", but how I can do this directly in ISQL so that the value is displayed on the screen to me? I think I have to declare the host variable first, but I'm confused about how... Thanks. You could always just type in the SET statement and then hit the Execute button. -- Jim Egan [TeamSybase] Dynamic Data Solutions, Inc. http://www.dy...

Getting Start With .net
hi i'm intersted to learn (vb or delphi) . i programming with delphi6 but i'd like to tp know something about programming in internet specially with .net . i hear about with delphi 7 that i can programming with delphi in .net .... is it right ? what 's our opinian about it ? and better to learn Vb.Net or continu with delphi(or thanks. Ali Darabian I think there is some support for Delphi in .Net. However, you will find much more support from the user community if you choose a more popular language such as VB.Net or C#. Since your al...

how to get start with .NET
the net help people installed  to my desktop 1-microsoft visual studio .NET enterprise developer 2003 2-microsoft .NET framework 1.1 what else do i need ...???  and how can i try with some simple code in VS.Net and run it to see wat happen...????? please help If you want to develope web applications, then you'll also need IIS on your PC.  That'll require XP-Professional or Windows 2000/2003, but XP-Home edition won't allow IIS installation. As for how to get started, you can search the web for some tutorials or buy a good book on VS.  The topic is way too vast to...

getting a number out of a string....
Greetings, How does one just get the number part out of a string? The script below just prints 1. #!/usr/bin/perl=20 @str =3D ('Gambia001.tiff','Gambia0021.tiff','Gambia031.tiff','Gambia035.ti= ff') ; foreach $str (@str) { $num =3D ($str =3D~ /\d+/); print "$str : $num\n"; } Thanks! Dave Gilden (kora musician / audiophile / webmaster @ / Ft. Wor= th, TX, USA) Endorsing Artist for the Moog Music: <> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D...

Get Numbers From a String
Delphi XE function TDm.GetNumbersFromText(MyText:String):Integer; var i:Integer; begin Result:=0; for i := 1 to Length(MyText) do begin // I'm getting 'Missing Operator or Semicolon' error below if (Ord(MyText[i]) > 47) and (Ord(MyText[i]) < 58) then Result := Result + MyText[i]; end; end; Thank You You have defined the function as returning Integer but on this line you are trying to add a character, MyText[i], to the Return (Integer) value. Result := Result + MyText[i]; > {quote:title=Melissa Torn wrote:}{quote} > D...

Getting Started but not working!!
Hi there,I just started with but I can't get my code to run so sad :'( All I got is this code above and I got a error message on my first line of code Any help please Thanks Donald "Error    1    C:\Documents and Settings\Jonathan\My Documents\Visual Studio 2005\DC with\Tutorial 1\Default.aspx: ASP.NET runtime error: Could not load file or assembly 'System.EnterpriseServices, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.  &nbs...

Can not get Pickup Directory... .net can't access metabase maybe??? Need to get working ASAP
I am using 2.0 to try to send an email to the IisPickup directorySystem.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(, "", "Testing " + DateTime.Now.ToString(), "Testing the Mail Drop Folder");System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("");client.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis; client.Send(message);Example Site : (hit the button)This code worked on our old deployment server but not on our new server.  I s...

Where to start and how did you get started?
Hi, I have had a feeling for a long time to jump into the adds market for some time due to my low income (shooting for the stars) and I don't have anything better to do these days. But I find it really difficult not to give up due to lack of guides (what I can find atleast) and all the hard words which only makes me confused. But I won't give up. Never. Not sure if this is the right place to post this, but I deffinitly would be really greatfull for help getting started. How did you get started? +If there are any teacher that wanna show me the ropes private, I can give payment with ...

Getting started with JScript.NET
I'm a Javascript and Actionscript developer, and the thought of being able to do server-sides in something I know was too good to resist. Does anyone know some good tutorials for developing ASP.NET pages in JScript?  I can find lots of console code, but simple things are hard: like I can't even figure out how to print something out to the web page (just a string). What I'm really trying to do is access a database, verify a login, and print JSON out to the response.  What should I do to start?  Is there a better way to do this? (IE: using some JSON library already?). I'm commun...

Getting all text at start of a string
Hello,I have a string (from a weather feed) that looks like:Monday: Mainly Sunny, 25.5°C Is it possible to get everything before the :So I can just get the day, and not the conditionsThe idea is that the feed looks likeMonday: asdsfasfMonday Night: asdsfasfTuesday: AFASFetc,Thanks  Try this: string s = "Monday: Mainly Sunny, 25.5°C"; string d = s.Split(':')[0];Thanks, EdMicrosoft MVP - ASP/ASP.NET...

Get Numbers in a One String !
Precise of some function of PB that gets to diffuse just of a text the numbers Example: ls_text = Magic1234PB " RETURN 1234 Does anybody know? I thank its attention! string ls_result, ls_x int i, li_len li_len = len(as_thecolumn) FOR i = 1 TO li_len ls_x = mid(as_thecolumn,i,1) if Isnumber(ls_x) Then ls_result = ls_result + ls_x end if END FOR RETURN ls_resu lt -- Terry Dykstra (TeamPS) Canadian Forest Oil Ltd. Alessandro Hass wrote in message ... >Precise of some function of PB that gets to diffuse just of a text the >numbers &g...

Getting started .net website
Hi folks,Does anyone here know of a good website to just sit back and read for learning .net? Thanks in advance.Baldeep Right here... Click the Get Started and Learn sections here. Quite a few out there - - this one, has a lot of good videos -  also, but then, I might be a little prejudiced David WierMCP/ - where to look first!Please Vote for ASPNet101 - 'Best Community Resource'!Control Grouper - easily control properties for multiple controls with one control!Calendar Express - The Best HTML Calendar Generator on the web!(P...

Getting Started with .net and a few questions
Hello I've done some asp and php programming along with various other languages in the past and slowing getting my head around .net.I have a small project of creating a Holiday Booking system on our Intranet and just trying to get the first part to work properly will hopefully get me sorted for the whole project. The Intranet is running on .net 2 and I prefer to use the VB code rather than C#. This is connecting to an SQL server.My initial page that I am trying to create is just for an admin user to view which dates in a table have been specified as Bank Holidays and be able to add ...

How do I get started with AJAX.Net?
Hi All, I'm a seasoned developer but have not yet ventured into atlas et al.  I prefer books, but will take whatever I can get if it's good and will get me going. Any recommendations? Thx in advance. Jeff try here first then learn from sample and docJames Wu (MIB426).NET is only way to goMCP, MCSE, MCDBA, MCSD, MCAD I find the materials online display features and implementations but are lacking architectural depth, and am seeking more comprehensive resources. By architectural depth, I mean that I cannot watch ...

Web resources about - Compare strings or numbers? Which option works faster? -

Number - Wikipedia, the free encyclopedia
A number is a mathematical object used to count , label, and measure . In mathematics , the definition of number has been extended over the years ...

Number - Wikipedia, the free encyclopedia
A number is a mathematical object used to count , label, and measure . In mathematics , the definition of number has been extended over the years ...

No strength in numbers: VCAT rejects test case on objectors legislation
The first test of laws passed by the Andrews government to &quot;give the community a voice&quot; in controversial planning decisions has seen ...

Population snapshot shows ACT boost in number of children
The ACT is losing people to other states, but it's also home to the biggest jump in number of children.

Cattle turned away from Muchea sale due to excessive numbers
Cattle turned away from Muchea sale due to excessive numbers

How HuffPost, Sleep Number Will Use Each Other's Data in Branded-Content Deal
... that touched on the importance of sleep, the agency exec pitched Ms. Huffington on doing a branded-content deal with Horizon client Sleep Number. ...

In Hebron 'even the kids have numbers'
Israeli army introduces a new system of identification numbers for the 30,000 Palestinian residents in the city.

Donald Trump’s supporters hate religious freedom, by the numbers
... were on the issue questions. After asking respondents which candidates they supported, the survey asked them whether they agreed with a number ...

Runkeeper updated with a number of improvements for the Apple Watch
... 3D Touch, requests and snowflakes . Runkeeper - GPS Running, Walk, Cycling, Workout, Pace and Weight Tracker Runkeeper updated with a number ...

Omnibus Increases Number of Unskilled Guest Workers
The Omnibus would increase the number of guest worker visas available to unskilled foreign nationals seeking employment in the U.S.

Resources last updated: 12/18/2015 2:48:28 PM