-
Invalid ORA-01722: number, the field type of both tables is varchar (2)?
when writing insert sql statements with python + cx_oracle, the error message is an invalid ORA-01722: number. The field types of the two tables are the same, and they are executed in PL SQL, and the field that reported the error is found. But after loo...
-
Perform a second screening from the result set
as shown in the figure, this association query is different in that it is associated with the same table
indicates that table_test
requirement: first query the result set of the field whose reply_type is 0, and then use the reply_id of the resul...
-
What does it mean that multiple map=0%,reduce=0% appear in succession in hadoop?
normal hadoop execution
hadoop
what does it mean that multiple map=0%,reduce=0% appear in succession? Last error report: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
...
-
What is wrong with this section of sql and how to solve it?
(SELECT *
FROM `dozhan_reply` t1
WHERE `reply_parent` IN (
SELECT `reply_id`
FROM (
SELECT `reply_id`
FROM `dozhan_reply`
WHERE `reply_article` = 69
AND `reply_type` = 0
LIMIT 0, 5
) t
))
UNION
(SEL...
-
Solving sql Association query
SELECT *
FROM `table_1`
WHERE `reply_parent` IN
(SELECT `reply_id`
FROM
(SELECT `reply_id`
FROM `table_1`
WHERE `reply_article`=69
AND `reply_type`=0
LIMIT 0,
5)AS t)
UNION
(SELECT *
FR...
-
Sql examination questions, how to write, ask for advice!
is like this, and the ultimate effect is to match the avatar address of the drink in the user table for each comment list
first, query out the table_1 (article comment table) article comment result set
then I found that these comments do not have...
-
Ask for help with sql?
Table 1: appl_id, name, sex, id_No Table 2: appl_id, appl_date, busin_key
in the following time period, find out the nearest time (appl_date) (appl_id) according to (id_No) (duplicate data in Table 1, appl_id is the associated primary key)
to_date ...
-
How to call DMSMyCuff.HASH? when inserting CROB into Oracle with Python
How can this be done in one operation instead of two?
< H1 >! usr local bin python3 < H1 >
import cx_Oracle
con = cx_Oracle.connect ( scott tiger@localhost:1512 ORCLPDB1 , encoding= "UTF-8 ") cursor = con.cursor () cursor.execute ( "CREATE ...
-
What is the relationship between isolation levels and locks in mysql?
isolation level and lock appearance seem to solve the problems caused by database transaction concurrency, right? What s the relationship between the two? I m a little confused ...
-
In the stored procedure of oracle, check that there is no GEN_ETL.R_AG_1_DAY@TO_CCGENESYS table?
then why is there still the following code?
from GEN_ETL.R_AG_1_DAY@TO_CCGENESYS t1,
GEN_ETL.O_AG_1_DAY@TO_CCGENESYS t2
...
-
How to realize multi-table union search?
the structure of the table is as follows:
now I need to query the contents from different tables according to the user s input. How can I quickly and effectively find out the results I want?
my idea is to associate the three tables, use case.whe...
-
Group by is grouped by one field, but select has multiple fields?
problem description
as follows, I created an attempt. I want group by to group the sum by RD.SKU and the RD.QTYRECEIVED field is sumsum, but I want to display the six fields of select instead of just showing RD.SKU and sumsum,. The simple point is, th...
-
How java executes sql scripts and passes parameters
as shown below, use ant.jar to connect to the oracle database and execute the sql script, but if my sql script takes in parameters (for example, through sqlplus: sqlplus user password@db @ test.sql A B C ), it seems that script parameters are not suppo...
-
If you use plsql to connect to oracle, for more than half an hour and do not operate, it will prompt "no response"?
close also indicates no response, stuck, need to close the process and reopen it? ...
-
How to solve the problem of data loss in multi-table join table query?
use leftJoin multi-table join lookup. Finally, a field in select is a field from count in one of the right tables, but if there is no count data in that table, the entire query will lose the result. Now you want to keep the data in the left table if the...
-
In general, what do you simply consider when you add an index? Why do I need an index of 2 fields?
what do you usually consider when adding an index?
I usually add an index by querying a few fields in the where clause and adding an index to those fields.
...
-
How to use a msyql statement to put several tables with the same table structure into a table and finally export it?
I now have multiple tables that generate one table every day from July 1 to December 30, and now my boss asks me to summarize the table contents of each month. The database table is just like in the picture. I wonder if it is possible to use a SQL state...
-
How does oracle modify the length of multiple fields at once?
alter table TB_EXAM_PROBLEM modify PRO_DESC VARCHAR2(4000);alter table TB_EXAM_PROBLEM modify PRO_KEY VARCHAR2(4000);
can only be modified one by one?
...
-
Can I use self-increasing id for PG and Oracle primary keys?
used to use mysql, you can directly set self-increasing id,PG and Oracle need to create self-increasing sequence. found that the primary keys in the oracle project do not use self-increment, but use the generated uuid. Is it better this way? ...
-
What kind of database to use relational algebra
recently, I m going to take relational algebra; that is, database principles; my first contact is an abstract sql statement (I don t know if that s right). now I d like to ask, what kind of database should the relational algebra of this way of writ...