| | |
Oracle Help Vb.net application
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi there Sorry if i have posted this on the wrong area.
I have a problem with a simple query shown below
My problem, The colname variable is not being recognised as a column name for example
A user can select to view a set of characters from the DB by username, movies, etc etc (they select this from a combobox) They then enter a search string(textbox)
colname = username
Searchstring = pluto
SELECT * FROM Disney
WHERE Upper(COLNAME) LIKE UPPER('%' || SEARCHSTRING || '%');
The problem is orac;e does not seem to be picking up that colname is a column name and seems to be doing a simple comparison. To make this clearer
it' seems to be trying to match username = pluto
rather than finding pluto in the username column.
Has anyone got any ideas how i can get around this. I have a strange feeling it is something to do with dynamic pl/sql but i am new to oracle so i have no idea how to write dynamic queries. Any help would be muchly appreciated
I am using oracle 11g and visual studio .net 2005
many regards and thanks in advanced icklecoder
I have a problem with a simple query shown below
sql Syntax (Toggle Plain Text)
SELECT * FROM Disney WHERE UPPER(COLNAME) LIKE UPPER('%' || SEARCHSTRING || '%');
A user can select to view a set of characters from the DB by username, movies, etc etc (they select this from a combobox) They then enter a search string(textbox)
colname = username
Searchstring = pluto
SELECT * FROM Disney
WHERE Upper(COLNAME) LIKE UPPER('%' || SEARCHSTRING || '%');
The problem is orac;e does not seem to be picking up that colname is a column name and seems to be doing a simple comparison. To make this clearer
it' seems to be trying to match username = pluto
rather than finding pluto in the username column.
Has anyone got any ideas how i can get around this. I have a strange feeling it is something to do with dynamic pl/sql but i am new to oracle so i have no idea how to write dynamic queries. Any help would be muchly appreciated
I am using oracle 11g and visual studio .net 2005
many regards and thanks in advanced icklecoder
Last edited by cscgal; Sep 26th, 2008 at 7:40 pm. Reason: Fixed code tags
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- How is 3Tier architecture implemented in ASP.NET (ASP.NET)
- I am working on an ASP.net 2.0 application written in C#, pulling data from an Oracle (Oracle)
- .Net Application Developer (Software Development Job Offers)
- Software Engineer (.NET , SQL) (Software Development Job Offers)
- C# and .Net Developer - Los Angeles, Ca - for the Music and Entertainment Industry (Software Development Job Offers)
- Jobs: Application Developers (Software Development Job Offers)
- Integrating Oracle API with ASP.NET application (Oracle)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- ASP.NET Engineer needed (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: how to store image in datbase
- Next Thread: Please help! I am going insane!
| Thread Tools | Search this Thread |
.net .net2008 2008 access account advanced application array basic beginner browser button buttons center click code combo cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic excel exists fade filter forms generatetags html images input insert intel internet listview map mobile module monitor msaccess net number objects open panel passingparameters pdf picturebox picturebox2 port position print printing problem regex right-to-left save search searchvb.net select serial settings shutdown soap socket sqldatbase sqlserver survey table temperature textbox timer timespan transparency txttoxmlconverter update user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year





