Question of CFQuery Structure

Can anyone tell me how I can strip the foreign characters in a field (during the execution of SQL) and compare it to a bare form field?

For example I hope it would work somehow - but there aren't :)

< cfquery >
SELECT...
WHERE cst_AccountNum = ' #attributes.accountNum # '.
AND
#REReplaceNoCase("cst_Phone","[,.-]", "", "ALL") # =.
"' #REReplaceNoCase("#attributes.telephone#","[,.-]","","ALL") #"

< / cfquery >

Get what I'm doing?

Thank you
Chris

OK, MS Access does not support regex directly, so let's use a simple user-defined function.

Use the code and the attached instructions to create the UDF in your database.

AFTER you create the UDF, this query will work:

SELECT
....
WHERE
cst_AccountNum = ' #attributes.accountNum # '.
AND
"sStripPhoneString (cst_Phone) = ' #REReplace (attributes.telephone," [,.-] ', ' ', 'ALL') #


Tags: ColdFusion

Similar Questions

  • question of case structure

    I have 3 case structures in another... say I want to create a new structure of matter during all of these existing business structures. so you have real and it shows each of the structures case etc. When you go to false, all existing within the moment disappear.

    My question is, what about when you pass false, the exisiting structures arise, as sub set to true by default

    Thank you

    Right-click and duplicate the real structure, remove the additional false.

    /Y

  • Question about the structure of dynamic event

    There is an indicator of "String" and two buttons Boolean ("GenerateMouseDown?" and "GenerateMouseUp?") on the front panel.  If the value of the "GenerateMouseDown?" or "GenerateMouseUp?" control is set to TRUE, the string "GenerateMouseDown" or "GenerateMouseUp" will be added to the indicator "String" once I click on the indicator, otherwise there is no string added to the indicator.

    I created the vi as in the attachment to this post.  However, if I select the button of "GenerateMouseUp?" or "GenerateMouseDown?" as the value FALSE, the matching string still will add to the indicator.

    Is that anybody could be using?  Thank you.

    Hi JCM,.

    It's because you have linked to these events directly to the string ' String: mouse upwards.

    When you want to use the events registered dynamically, you must select instead: "': mouse upward"... "

    You are in no way related to Neo6, who asked a very similar question just yesterday?

  • building first wordpress theme, had a question about the structure of the site

    My only experiences have been with static HTML pages and I'm now working with wordpress, I had a question that may seem stupid, but I just wanted to try to get an anser.  When I look at a lot of wordpress themes, it seems that there is almost no copy on the page real home/landing.   Count positions as copy or how exactly does this work? I'm so used to writing copy on the landing pages that I am a little thrown by the present.

    You may be pleasantly surprised to learn that WP sites do extremely well with the search engines.  Its not make distinctions on the static/dynamic, messages/pages.  The content is happy.  If you update content regularly, its opinions you has more.

    If you think that you need, you can make a static front page in WP.

    http://Codex.WordPress.org/Creating_a_Static_Front_Page

    Nancy O.

  • Question about the Structure of the InDesign files

    I had an interview Friday for design work and they asked me to send them a file InDesign stripped without photos or anything, just a file in order to check the structure of the file and see how I set up my files.

    1. What is the structure of files right?

    2. What do you think they are looking for?

    3. How can I send them?

    Thank you!

    I would like to provide the following:

    Bleed Setup (usually specified comme.125 inches for commercial printing)

    Layer stacking order (Z) (to see if you know how a document flattened)

    Margins and columns (mainly for multi-column Documents)

    Page Setup (spreading if facing Pages or single Page is needed)

    I would like to start with 3 layers listed of how they appear in the Layer palette:

    Text (this stays on top to counteract the effects of transparency)

    Images (this layer is used for images or a type with transparency effects)

    Background (I create a rectangle of size of purge with a background and outline of the default none)

    If including the text:

    Give an example of:

    Paragraph and character styles

    Nested styles

    BONUS: Grep Styles

    I have also to create a group of mixed some sort and dieline inks using a spot color and super.

    It can impress if you included Rich Black if necessary.

    All of this would show them your knowledge of Indesign and Print Design

  • Question about the structure of logical storage Foundation for Oracle: blocks and lines

    Version: 10 g 2, 11G

    Question1.
    An oracle block (say an 8 k or 16 k block) can contain multiple lines. Right?

    Question2.
    Each row stored in an oracle block is referred to as a piece of line in the terminology of the Oracle. Right?

    Hello

    Question1.
    An oracle block (say an 8 k or 16 k block) can contain multiple lines. Right?

    Years: Yes, in a block oracle, there may be more than one rank that oracle 10 g or 11 g is not serious.

    Question2.
    Each row stored in an oracle block is referred to as a piece of line in the terminology of the Oracle. Right?
    Rep. : Yes, you are right.

    The link below will better answer you on this question.

    http://download.Oracle.com/docs/CD/B13789_01/server.101/b10743/schema.htm

    Best regards

    Rafi
    http://rafioracledba.blogspot.com/

    Published by: Rafi (Oracle DBA) on March 29, 2010 06:37

  • Question about the structure of fact sheets and articles.

    Hey there,

    What is my goal:


    One of my clients asked if it was possible to establish a DPS document:

    When you scroll your application of left to right (and vice versa), you always get to the TOP of the page when you enter a new article.

    I was wondering if there was a way to fix this somwhere? I can't really

    Thanks in advance.

    Hello Kevin,

    as much as I know it is currently not possible. When you open a freshly downloaded topic, you'll start always on the top of the page, but as soon as you navigated down in an article, the application will be

    Save the laast 'saw' the page and go back to this post as soon as you arrive backt to the article.

    Maybe you should apply for a feature of addes in option switch in the DPS App Builder.

    Kind regards

    Michael

    CrossIP communications gmbh

    next generation conversion PDF4DPS

  • Question of data structure SAMS

    Hi guys,.

    Can someone please clarify this for me? I'm looking presenting "Freelists vs. SAMS in Oracle9i", by Tanel Poder and on 19 slides that he speaks the segment of the SAMS and SAMS segment header. I'm just a little confused. If we have SAMS and we create a table, then it means that a segment of the SAMS is created for that table too? that is, we will have two segments, one for the table and a segment of the SAMS for her?

    Or is only one segment created (for the table) and BBM L1 reside in the segment of this table header and the BMB L3 reside in the first blocks of data to each point of this segment? is that correct? If so, where reside the BMBs L2?

    Thank you

    OracleGuy777 wrote:

    No, he's single segment, segment of the table that is created. There are 2 blocks of original bitmap that are created to store the bitmaps news would use Oracle to store the information on the blocks. These blocks are also a part of the original measure itself. The first 2 blocks will be L1, L2 BMB blocks.

    I'm still a little confused. I think I got is the following:

    (1) L1 will be in the first block of data in the segment
    (2) L2 will be in the second block of data in the segment
    (3) say you that L3 will have a pointer to it in the segment header. But where is stored the L3? In addition, Poder slides said she peut be stored in the segment header. So I'm assuming that ying is right, but you are also right that it doesn't have to be stored in the segment header, because power has written can. If this isn't in the segment header, then where is Theerfore, it stored?

    Except a special case for small extensions, each scope in a tablespace using SAMS will start at least a block of bitmap of L1. Large areas may have several consecutive blocks of bitmap of L1. When Oracle adds a new measure and it also detects a need a new block of bitmap L2 - which means there are now too many blocks of L1 to the list in the existing blocks of L2, it will put this block of L2 after the L1 blocks - if there are now too many blocks of L2 to the list in the existing L3 blocks , it will put a new block of L3 L2 after block.

    The segment header block is not a block of L3, but part of the segment header block is used to play the role of a block of L3 - and you'd have to have a big enough chunk of data (many blocks) until you need a 'real' L3 block. If you have a large segment that it has several blocks of L3, then the segment header block contains a pointer to the first block of L3, and each block L3 (I guess) contains a pointer to the next of the L3 block).

    (Note this use of 'extra' of the segment header block is similar to the way that the segment header block is not a block of 'the freelist group' when using traditional freelist management, but the (in the spare space the) segment header block plays the role of a freelist group block when you have not created a variety of non freelist groups.)

    The particular case of magnitude without a block of L1 appears because Oracle is able to use a single block of L1 to cover the data blocks of small adjacent areas - of features, when you use also the allocated system extent sizes 16 first scopes are usually 64 k, which usually means 8 blocks of 8 KB each - in this case You can find that Oracle uses the block of L1 of the first measure to map the extent of the first and the second block of L1 of the third measure to map the data of the extent of the third and fourth blocks and so forth.

    Mark is using SAMS handling as a synonym for L1 block bitmap block, block of bitmap of L2, L3 block of bitmap.

    Concerning
    Jonathan Lewis
    http://jonathanlewis.WordPress.com
    http://www.jlcomp.demon.co.UK

    "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge."
    Stephen Hawking

  • How to manage the structure of the event with two loops

    I have a question about the structure of the user event with 2 buttons?

    key 1: START LOGGING DATA

    key 2: STOP LOGGING DATA

    How do I control my

    structure of the event so that it will work? because now that the loop is save data... I can't stop the loop, when I clicked on buttons.

    super_saiyans wrote:

    the problem with moving it is that I don't have control of the DATA RECORD STARTING?

    Of course, you do.  When you get your press conference button, you say your state machine to move to the State of logging.  You must also make sure that you return to visit the State to wait for the event to check out the events of the stop button.

  • Structure of the event in timed loop

    Quick question on the structures of timed loops\event

    What is a good or a bad idea to use structures of event call loops - as opposed to while loops. ?  I guess I like the idea of call loops - because you can prioritize them - so if there are some important things you need priority of 100% in the background - but for the user interface, you can configure it to run slower\or run to a different priority level.

    I just wanted to check it is not a reason why I shouldn't do that - since all the examples don't do that.

    JP

    I don't think it's a good idea. Your timed loop can stop waiting for an event. There is no advantage of placing the structure of the event in a timed loop. It is possible to assign priorities to other objects outside of the call loops. For example, you can the priorities given to subVIs. I'm reasonably sure that the structure of the event can work at other priorities if you do not the activities of the user interface. Maybe someone of NOR can confirm this.

    But the goal of a timed loop is to have a deterministic periodic job. The structure of the event must be used for asynchronous events. The two disagree with them if they are in the same spot.

  • structural problem dealing with default 0, 1, 2

    Good afternoon

    I have a question about the structure of the case. If you use 3 cases, by default, 0, 1 and 2, as in the following VI.

    How can you fix that the sum is never 3? Because when you turn on the switch 1 and 2 at the same time it gives the sum of 3 and the case will go to the default settlement.

    Thanks for the help.

    Use an option button. You can replace the standard buttons with your great rocker.

    Lynn

  • structure of the page in muse

    Hi, I was wondering if someone could help me with a question about the structure of page in Muse. I made a menu with 4 pages, and each page, I have a textbox with a button with 'more' in it.  Here, they can find a page with more information. It is a "sub" page, so I don't want in the headmenu, or a submenu. How can I do? Thanks in advance!

    Switch to outline view, right-click on the page, then choose the command exclude page from menu.

  • Need help with opening to the conversion of Lightroom

    I am doing tests with Lightroom and have questions about the structure of the file after the import of Aperture.  I see that the import into Lightroom preset creates a very nice folder structure that can be seen in the Finder - year / month / event or day.  But in Control Panel folder in Lightroom, all I see are the records of the event: it's as if the entire folder structure is flattened and none of the parent folders (year / month) are showing.  There is therefore a ton of records.  Why the folder Lightroom Panel does not show the real folder structure in the Finder?  Is this normal?

    It's the opening for Mac forum - detailed question on how to use LightRoom must be posted on the Adobe LR or addressed to the LR support forum

    LN

  • Sequence work properly

    Hello.  Just a quick question: business structures flexible while constantly questioned by one while loop?  For my experience, I need the system to start in a configuration, turn off by pressing a button and from there the off State have a button that triggers another sequence once.  I've tried to achieve by constantly questioning a case structure with a while loop, but when I run my program the signal appears as if it is locked into the State at startup time (I tried with start, stop start and secondary test and both secondary boot off the power).  I suspect that I might have to release some kind of memory when you press a button, but I am not sure how I should approach this or anything that I have to use screws.  The fact that my codes within the structure of the case so that loops (I'm production of pulses) may also have something to do with it.

    If you have any other suggestions, I'd be happy to hear.  My goal is to make this program can switch to all States, that I need using only two buttons as soon as it runs.  I can do more complicated for me, but it seems it would be the easiest way after watching the tutorials.

    I have attached the VI if someone wants to look at precisely what I did.  It's a little complicated, but simply ignore all that are not, all in curls or structures of the case.  As I said earlier, the question is not choosing between the States, he is switching between them while the program is running.  I'm under Labview 2009 SP1.

    I was finally able to open your VI. It takes FOREVER to load. There are so many things wrong with your code, it's hard to know where to start. First, as suggested you use subVIs. In addition, the general rule in LabVIEW programming is your VI should fit on a single screen. It is very difficult to keep track of what is past or see how things fit together when you have to scroll the schema-block in all directions. A major problem that jumps out is the nesting level, you have with loops in loops with loops. You realize that ALL code must complete its execution in a loop before it can move forward to the next iteration. You have six parallel loops nested within another lop. Each of these internal loops is set to finish before a front panel control. So, in order to perform an iteration of the loop e euser must press stop six buttons. To make matters worse, you have different stop as the case buttons, you are in.

    The best advice I can give you is to throw this code and start over.

  • key down event

    I have a question about the structure of the event.
    If you are doing an event for "key down", where can you specify which key is pressed.

    instead of any key

    It intercepts all keys.  But there are nodes on the left side of the structure of the event for the tank or scan code. They will tell you which is pressed.  You can compare it to your character or scancode of interest and if they match, run the code in a housing structure.

Maybe you are looking for