473,467 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I insert into db in uppercase

13 New Member
hey there.
really need ur help.. my problem is I want to insert all value into db in uppercase

this is my code..
Expand|Select|Wrap|Line Numbers
  1. <cfquery name="insrt_srvy" datasource="#ds#">
  2. INSERT INTO SURVEY_HEADER (REF_NO)
  3. VALUES(<cfqueryparam cfsqltype="cf_sql_varchar" value="#ref_no#">)
  4. </cfquery>
  5.  
before this I put the uppercase around the value..
like this..
Expand|Select|Wrap|Line Numbers
  1. <cfquery name="insrt_srvy" datasource="#ds#">
  2. INSERT INTO SURVEY_HEADER (REF_NO)
  3. VALUES(<cfqueryparam cfsqltype="cf_sql_varchar" value=(Upper("#ref_no#"))>)
  4. </cfquery>
  5.  
but I got an error.
Can anyone help me please..
thanks in advance :)
Mar 7 '13 #1
1 7440
acoder
16,027 Recognized Expert Moderator MVP
Try:
Expand|Select|Wrap|Line Numbers
  1. value="#upper(ref_no)#"
Mar 7 '13 #2

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

Similar topics

23
by: Hallvard B Furuseth | last post by:
Has someone got a Python routine or module which converts Unicode strings to lowercase (or uppercase)? What I actually need to do is to compare a number of strings in a case-insensitive manner,...
8
by: Markus Dehmann | last post by:
My ios::uppercase (and others) seems not to work. #include <iostream> using namespace std; int main(){ int num = 45; cout.setf(ios::hex | ios::showbase | ios::uppercase); cout << "number " <<...
3
by: Fernand St-Georges | last post by:
How can I create a trigger that obliges UPPERCASE of a field in the database? thanks
13
by: GRoll21 | last post by:
I know there is a function but I cannot seem to find it. There should be a way to uppercase a char right? Here is what I got. cout << "Enter title of a book for look up: "; cin >>...
2
by: Thomas McK | last post by:
Hi all, I'm trying to make a SQL query (against a table in MS Access) where I want to take the value of something, and check to see if the first two letters in that value are capitalized (for...
1
by: Beffmans | last post by:
How can I turn the Uppercase mode on in my TextBoxes? ch B. *** Sent via Developersdex http://www.developersdex.com ***
1
by: shrutikhungar | last post by:
How do I insert a value in the database in upper case through Insert query? Eq. INSERT INTO CUSTOMER_TBL VALUES ('a'); I want cappital 'A' to be inserted in the database. Please help. ...
4
by: Hrsoft | last post by:
I'm a newbie with asp.net I need to transform a user textbox to uppercase, when typing. Is this possible? I read about Ajax Maskedit, but it is only to certain formats, like dates, etc Thanks...
7
by: Francesco Pietra | last post by:
How to insert letter "A" on each line (of a very long list of lines) at position 22, i.e., one space after "LEU", leaving all other characters at the same position as in the original example: ...
1
by: Newcomsas | last post by:
Hello. I'm trying to solve a little problem with an uppercase function. It looks like this: function uppercase() { key = window.event.keyCode; if ((key 0x60) && (key < 0x7B))...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.