当前位置:网站首页>Oracle custom data type question
Oracle custom data type question
2022-06-13 10:03:00 【CSDN Q & A】
Problem description
I learned it today Oracle Custom data types in TYPE, After inserting data , The field value is displayed as user name .TYPE name ( value 1, value 2), Instead of ( value 1, value 2)
-- establish TYPECREATE OR REPLACE TYPE type_name AS OBJECT ( FirstName varchar(100), LastName varchar(100),)-- Create table CREATE TABLE STUDENT( ID NUMBER(10), NAME type_name, SEX VARCHAR(10))-- insert data INSERT INTO STUDENT(ID,NAME,SEX) VALUES(11,type_name(' Zhang ',' 3、 ... and '),' male ');INSERT INTO STUDENT(ID,NAME,SEX) VALUES(12,type_name(' Li ',' Four '),' male ');
doubt
I thought “NAME” It will show (' Zhang ',' 3、 ... and '), The result now shows "WMS_LP_ZHONGCHE"."TYPE_NAME"(' Zhang ',' 3、 ... and '), Is this normal ?
And I use this field to fuzzy query , Has been an error , I tried for a long time but failed
Precise query can
边栏推荐
猜你喜欢
Tree and binary tree: basic operation and implementation of binary tree
WIN7无法被远程桌面问题
ASCII码值是怎么计算的,怎么计算arccos的值
Thingsboard tutorial (20): filtering telemetry data using regular chains
计算循环冗余码--摘录
【 ssl2 ⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶83
虚拟机内存结构简述
【图像去噪】基于matlab高斯+均值+中值+双边滤波图像去噪【含Matlab源码 1872期】
Thingsboard tutorial (21): save data after processing using message types and data processing nodes
[51nod p3395] n-bit gray code [bit operation]
随机推荐
Class template
JS local storage
Chapter I Section I
MySQL利用E-R模型的数据库概念设计
简述请求过程
【图像去噪】基于matlab高斯+均值+中值+双边滤波图像去噪【含Matlab源码 1872期】
聊聊 C# 方法重载的底层玩法
Instruction level parallelism (?)
Test redundancy code for error problem type solution - excerpt
Trees and binary trees: Construction of binary trees
【工具链系列】 Notepad++
格林纳达代表团团长孙宇晨出席WTO MC12 强调发展数字经济
acwing 790. The third root of a number (dichotomy)
Node-RED系列(二四):在Node-RED中使用mysql节点实现数据库的增删改查
递归想法和实现介绍,消除递归
【 ssl2 ⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶83
[51nod p3111] xiaoming'ai intercepts [Las]
go path包
C 11 more practical NAMEOF
[Luogu p1090, ssl1040] merged fruit [pile]