摘要:
create table salary (userid int,salary decimal(9,2)); -- mysqlinsert into salary values(1,1000),(2,2000), (3,3000),(4,4000),(5,5000), (1,null),(2,500) 阅读全文
摘要:
select * from emp where hiredate > '1982-1-1'; -- mysqlselect * from emp where hiredate > to_date('1982-1-1', 'yyyy-mm-dd'); -- oracle 阅读全文
摘要:
本页面所有内容也可以在oracle 运行,只需要把int、float 、decimal 改为 number类型即可 -- 字符串转数字 int 类型 drop table test;create table test(id int);insert into test values(100);inse 阅读全文