Shall I use varchar2 or nvarchar2?

My character set is AL32UTF8. Now I want to limit the length of a column to 5 chars for both English letters and Chinese characters, but seems I can't make it work for both language. (In SQL Server, nvarchar can be used for this purpose):
create table test(a varchar2(5 char));
insert into test values('abcdef') --Will prompt value is too large for the column
insert into test values('大大大') --Will prompt value is too large for the column
looks like a chinese character always occupies two chars, I tried nvarchar2 too, but the result was the same. I can't simply increase the length of the column, because I also need to limit the number of English letters in that column.
Any ideas about this?

I have identified this post as one that appears to have been posted between August 3rd and 7th, 2004, but had the wrong date applied, during problems with the forums. I do not have time to answer them all myself, so I am posting this reply just to bump it from the bottom of the list to the top of the list, where others may see it and respond to it.

Similar Messages

  • Shall I use one datasource for multiple connection pool?

    Hi,
    I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
    Thanks with regards
    Suresh

    No. If its transactions across multiple databases you should use different datasources.

  • Which cable (original apple usb or bmw y) shall i use to connect my 4th gen iPod photo 60 gb to bmw f10 (with com box) is it going to work with the apple usb cable and how long does it take till I can access the 33gb content via the bmw display?

    Which cable (original apple usb or bmw y) shall I use to connect my 4th gen iPod photo 60 gb (old but still working ok) to bmw f10 (with com box), build december 2010 > is it going to work with the apple usb cable and if so, how long does it take till I should be able to access the 33gb content via the bmw display?
    Alternatively: How long does it take if I would have to use the bmw y cable till I can access the 33gb content via the bmw display?

    Which cable (original apple usb or bmw y) shall I use to connect my 4th gen iPod photo 60 gb (old but still working ok) to bmw f10 (with com box), build december 2010 > is it going to work with the apple usb cable and if so, how long does it take till I should be able to access the 33gb content via the bmw display?
    Alternatively: How long does it take if I would have to use the bmw y cable till I can access the 33gb content via the bmw display?

  • How shall I use my IMac and MacBookPro, with synchronized files

    Hi, how shall I use my IMac and MacBookPro, with synchronized files? I used to work at home and office with those to machines and finally always have different version of my documents. Is there any dispositive that I should use, where all my files are moving with me? os there is something to synchronized the computers using WiFi or bluetooth?

    The following has instructions: OS X Mavericks: Share your Internet connection

  • What program shall I use?

    Can I use flash player on my new mac, or what program shall I use?

    You can use Flash Player - download and install from http://get.adobe.com/flashplayer/.
    Good luck,
    Clinton

  • In mdx how to get max date for all employees is it posible shall we use group by in mdx

    in mdx how to get max date for all employees is it posible shall we use group by in mdx
    example
    empno  ename date
    1         hari        12-01-1982
    1         hari        13-06-2000
    by using above data i want to get max data

    Hi Hari3109,
    According to your description, you want to get the max date for the employees, right?
    In your scenario, do you want to get the max date for all the employees or for each employee? In MDX, we have the Max function to achieve your requirement. You can refer to Naveen's link or the link below to see the details.
    http://www.sqldbpros.com/2013/08/get-the-max-date-from-a-cube-using-mdx/
    If this is not what you want, please provide us more information about the structure of you cube, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Basic Standard IDOC type v shall b using which is relevant to our scenario

    Hello Everybody,
    We need to use SAP ALE functionality to transfer the date instantaneously.
    The interface is designed to transfer ABC employee's attendance & absence data to XYZ SAP instance for time evaluation and payroll transferring.
    Can anybody let me know the general scenario v follow for this interface to happen.
    for e.g. :
    Start--> Remote system call > IDOC_INBOUND_ASYNCHRONOUS>Pass communication to the system > User ID validations-> Data in Control Records ---> ALE Services filtering --> Application IDOC saved in the Database ---> Process IDOC immediately ---> Run tht Report prgm RPTEXTPT --> Read Process Code from Partner Profile -> Posting Module-->END.
    I'm using the Business Object - BUS7011,
         Tables Ptex2000,PTEX2010.
    Do v follow the same scenario for the CATSDB to happen in both SAP instances.
    I want the Basic Standard IDOC type v shall b using which is relevant to our scenario of Payroll and Time Sheet Management.
    Plz let me know.
    Any pointers will be much helpful.
    ThankQ
    Rohini.
    [email protected]

    Solved myself.

  • HT1338 What anti-virus software shall I use for my Mac OS X 10.6.8?

    What anti-virus software shall I use for my Mac OS X 10.6.8?

    There are many forms of ‘Malware’ that can affect a computer system, of which ‘a virus’ is but one type, ‘trojans’ another. Using the strict definition of a computer virus, no viruses that can attack OS X have so far been detected 'in the wild', i.e. in anything other than laboratory conditions. The same is not true of other forms of malware, such as Trojans. Whilst it is a fairly safe bet that your Mac will NOT be infected by a virus, it may have other security-related problem, but more likely a technical problem unrelated to any malware threat.
    You may find this User Tip on Viruses, Trojan Detection and Removal, as well as general Internet Security and Privacy, useful: The User Tip seeks to offer guidance on the main security threats and how to avoid them.
    https://discussions.apple.com/docs/DOC-2435

  • What timeline format shall i use for footage in AVCHD format?

    I am shooting with the Sony HXR NX5, and i would like to ask what timeline format shall i use for footage in AVCHD format? I do not see any format in the Final Cut Pro and in Motion that matches my camera format.
    Thank you very much for your assistance.
    Best regards,
    Richard

    IF you are working with FCP 7.0.3 (the last version) then you use Log and Transfer to ingest your footage from that camera, and Log and Transfer will convert the AVCHD camera files to ProRes.
    Once the camera files are ingested, make a new (empty) timeline, and either drag a source clip or edit it to that timeline and you will be prompted to match the sequence settings to the source clip. Say yes and you should be good to go.
    AVCHD, H.264,etc. files are not directly usable in FCP without conversion.
    MtD

  • Frist charge : shall I use the macbook pro on the battery until the computer shut down automatically? Thanks.

    Hi. First, sorry for my English, i'm not a native speaker.
    It's the firt time i buy a macbook (pro) (and the first time i post here).
    I have recieved my macbook pro today, firt i've pluged it to the home electricity, and the i've started it. Then, when the battery charge was full, i've unplugged it. And now, my main question is : Shall i used the computer on the battery until it shut down automaticaly, or shuld i plug back the computer to electricity before it shut down?
    Thanks a lot,
    Jean-Alexandre.

    Portables with built-in batteries
    Current Apple portable computer batteries are pre-calibrated and do not require the calibration procedure outlined in this article. These computers use batteries that should be replaced only by an Apple Authorized Service Provider.
    MacBook 
    MacBook (13-inch, Late 2009) and later
    MacBook Air
    MacBook Air, all versions
    MacBook Pro
    MacBook Pro (13-inch, Mid 2009) and later
    MacBook Pro (15-inch, Mid 2009) and later
    MacBook Pro (Retina, Mid 2012)
    MacBook Pro (17-inch, Early 2009) and later
    http://support.apple.com/kb/HT1490

  • What kind of SSO shall I use ?

    Hi all,
    We would like to use SSO while logging on through SAPGUI, on SAP systems. The systems are running on both Unix and Windows family. It is important that, they are not attached into the domain. We are using Active Directory on Windows 2003 as domain controller. First question is, can I use SSO between cross domain Unix and Windows SAP servers. And the second question is what SSO shall I use?
    Thank you

    Orkun,
    For this you need to take advantage of the SNC interface provided in SAP GUI and on most versions of SAP app server (later than 3.1I). The SNC interface requires a compatable GSS-API library, which you can obtain from a third part vendor. There is a library available from SAP for this, but it only works if you are using SAP on Windows. Since you have SAP on both Windows and UNIX you will need a product which supports this range of operating systems. The company I represent (CyberSafe Limited) has such a product, and you can find out about it <a href="http://www.cybersafe.com/links/snc.htm">at this location</a>. If you have any questions, or would like to arrange a free evaluation please contact me using my email address given in my SDN business card.
    Thankyou,
    Tim

  • I plan to buy an iphone 6 from New York. I am from India and shall be using the phone in India. Is it possible to get an unlocked iphone from the store? If yes, how much would it cost?

    I plan to buy an iphone 6 from New York. I am from India and shall be using the phone in India. Is it possible to get an unlocked iphone from the store? If yes, how much would it cost?

    It is going to be months before any unlocked iPhone 6s will be available.
    Also be aware that the iPhone purchased in the USA will only have warranty service in the USA. Any warranty service will require you to bring it back to USA.

  • Shall I use SELECT SINGLE??

    Iu2019ve retrieved MSEG-MATNR for the condition mseg-mblnr = material doc no. and mseg-mjahr = mat doc year and mseg-zeile = mat doc item.
    And my retrieved data mseg data in i_mseg is like below:
    Mblnru2026u2026u2026..mjahru2026..zeilen.u2026u2026.matnr
    0049000242....1995......0003........YY-110
    0049000242u2026.1995u2026u20260004u2026u2026.YY-120
    0049000248....1995u2026u20260001u2026u2026..40-110C
    0049000248u2026.1995u2026u20260002........40-200C
    0049000248u2026.1995u2026u20260003........40-210
    0049000248u2026.1995u2026u20260004........L-40C
    Now Iu2019ll have to fetch:
    MAKT-MAKTX for the condition MAKT-MATNR=MSEG-MATNR and MAKT-SPRAS = u2018ENu2019.
    Shall I use select single or normal select queries for makt-maktx retrieval?
    If select single, then why and if not, then why?     
    Can anyone please guide?
    Regards.

    Hi,
    It depends of how many records you expect to read. If you have a reduced amount of records I would expect for the join statement to underperform, even if the access to the data bank is faster.
    But at a considerable amount of data the join might be a lot faster. Use the tc SM30 to test your code.
    This is a test script (for development system):
    TABLES: mseg, makt.
    SELECT-OPTIONS: s_mblnr FOR mseg-mblnr,
                    s_mjahr FOR mseg-mjahr,
                    s_zeile FOR mseg-zeile.
    PARAMETERS p_join AS CHECKBOX.
    DATA: BEGIN OF l_mseg,
            mblnr LIKE mseg-mblnr,
            maktx LIKE makt-maktx,
          END OF l_mseg.
    START-OF-SELECTION.
      DO 10000 TIMES.
        IF p_join IS INITIAL.
          SELECT mblnr INTO l_mseg-mblnr FROM mseg WHERE mblnr IN s_mblnr
                                AND mjahr IN s_mjahr AND zeile IN s_zeile.
            SELECT SINGLE maktx INTO l_mseg-maktx FROM makt
                                       WHERE matnr EQ mseg-matnr AND spras = sy-langu.
          ENDSELECT.
        ELSE.
          SELECT mblnr maktx INTO l_mseg
                   FROM mseg JOIN makt ON makt~matnr = mseg~matnr
                   WHERE mblnr IN s_mblnr AND mjahr IN s_mjahr AND zeile IN s_zeile
                   AND spras = sy-langu.
          ENDSELECT.
        ENDIF.
      ENDDO.
    regards,
    Edgar

  • Shall I use Value Objects???

    Hi,
    I am creating a web app with approx 25 web pages with not much business logic.
    I plan to use struts framework.
    What I wanted to know was, shall I use value object pattern for my web page?
    Is there some kind of questionaire which I can take to decide whether I should use VO or not?
    Thanks,
    KS

    What's the difference between DTO and VO? Both are
    little more than C structs for ferrying data between
    layers. No functionality whatsoever.Value Object was the name used in the first editions of the Applied Java Patterns & Core J2ee Pattern books from Sun. These are called Data Transfer Objects in the later issues of these books.
    The Value Object name also caused some confusion because the term has previously been used to refer to language specific ideoms of wrapping primative types in Object.

  • Which activity shall i use to initiate a documentum workflow under ecm connector.

    which activity shall i use to initiate a documentum workflow under ecm connector.

    That's not something supported out of the box.

Maybe you are looking for

  • Error in QS21 T-code

    Hi, I am getting an error when using QS21 T-code. I have created Characteristics in CT01 and assigned them to class in turn to Material Master in MM01. Now I have to create MIC's for the Char's I have created. While doing so in QS21 I am getting an e

  • APD issue, Data not showing correctly in APD.

    Hi All, Please guys help me with this APD issue that I am facing. There is an APD created whose target is a file and with one routine. Here the purpose of the routine was mostly just to sequence the fields the way I want them, and only to show certai

  • My iPhone 4 has been disabled it says connect to iTunes

    I don't know how to connect my iPhone 4 to  a iTunes account ?

  • Downgrade HP 15-r011dx to windows 7, need help finding drivers

    I have installed Windows 7 64 bit on my new HP 15-r011dx laptop and cannot find drivers forthe wireless network adaptor. Any help would be greatly appreciated! Thank you in advance! This question was solved. View Solution.

  • Field exit error

    hi all,      I am getting error when activating function module for field exit. "The main program of the function "FIELD_EXIT_MB_ERFMG_A" does not be "FUNCTION-POOL". what is wrong? can anyone help me?