ORA 00932: expected NUMBER got BLOB error when trying to view table content - sql

I wrote a servlet program to upload an image to Oracle table. I am using Oracle 10g version.
I created the table using
create table insertimage( image BLOB);
The table was created successfully. My servlet shows image uploaded successfully. Even when I delete using
delete from insertimage;
it shows successful row deletion.
But when I try to see the table content using
select * from insertimage;
it gives me
ORA-00932: inconsistent datatypes: expected NUMBER got BLOB error.
So how can I check if the image has been successfully uploaded or not directly in the Oracle table?

There are lot of third party IDEs which you can use - a good free one would be Oracle's own SQL Developer
Double click on the table from the object tree. On the "Data" tab, click the "..." button with the BLOB column & then click the "View as Image" checkbox

Related

Big Query not allowing to create table

I'm trying to create a table in Big Query out of a csv file that I have already stored in Google Cloud Storage, it has approx. 65MB. Already checked resources such as this one here: https://cloud.google.com/bigquery/docs/tables
However the "Create Table" is not clickable. I'm getting no error messages, no red warnings, just a not clickable button. Any ideas on what could be happening?
EDIT
Here print with table name:
You missed "Nome de tabela". You have to give your table baby a name.

Cannot view or delete a table in BigQuery when it is named/saved as "test"

I have created a query destination table that resulted in this message even though I saved the results of a query, and did not import data using the automatic schema detection feature.
I named the table "test".
"The schema for this table was automatically detected. If the schema
was not correctly detected, you can re-run the load job with an
adjusted schema. Dismiss."
The table is displayed in the dataset, but when I try to access it the error message displays and there is no data present:
Unable to find table: [removed]:[removed].test Dismiss
Also, when I try to delete it via the web UI nothing happens, and the network request in the browser returns a 404.
Why can I not view or delete this table?

How to Retrieve BLOB Data In Oracle APEX

I want to retrieve BLOB data from database table to Display Image Item called P4_COMPANY_LOGO
I have selected the source for Display image item as SQL Query (Return Single Value):
select company_logo from companies where company_id=10;
But when I run the page it immediately return this Error:
P4_COMPANY_LOGO has to have a valid BLOB column as source.
Help Please!..
Maybe you don't have the item properties quite right. This would work:

Adding images to Oracle SQL Developer

I'm using Oracle SQL Developer and I'm trying to add images from a folder on my desktop to the database. I have a table consisting of:
id number
Name varchar
description clob
thumbnail blob
image ordimage
filename varchar2
I want to be able to add an image to this table.
Is there a way I can manually add them or is their any code tips or help I can get?
In Sql-Developer, you neet to click on the table on the right side,
then select "Data" tab, then insert new row (or select existing row),
next click to BLOB column, on the following dialog click to "Load" option,
then select an image and upload it to the table from local disc
See attached picture.

phpMyAdmin CSV Upload Replace Data Not Working

I have created a database and table in phpMyAdmin.
I am importing the data from a csv file.
This works fine and adds the data correctly.
However each time I upload I want to replace the existing data.
I have ticked the box "Replace table data with file", it uploads fine but doesn't replace the existing rows it simply adds the new data as new rows below the old data.
Any ideas why this is happening?
This appears to be misleading text; it adds the "ON DUPLICATE KEY UPDATE" directive rather than truncating the table prior to insert, see the bug report at: https://sourceforge.net/p/phpmyadmin/bugs/4891/