摘要: orcal的删除有3种:delete、truncate、drop。 delete可以手动提交和回滚,且可以使用where;而truncate、drop执行即对表数据进行了修改,且不能使用where。 delete、truncate只删除表数据;而drop删除表数据和表结构。 所以删除表中某些数据多用 阅读全文
posted @ 2021-07-06 11:59 请叫我小马驹 阅读(424) 评论(0) 推荐(0)
摘要: import java.io.UnsupportedEncodingException; /** * 获取拼音码 * * @author xmj * */ public class GetPinyinCode { private final static char[] en_char_Upper = 阅读全文
posted @ 2021-06-01 11:05 请叫我小马驹 阅读(830) 评论(0) 推荐(0)
摘要: 1.表插入列 alter table XMJ_ONE add column1 NUMBER(38) default 0;comment on column XMJ_ONE.column1 is '字段1'; 2.表删除列 alter table XMJ_ONE drop column column1 阅读全文
posted @ 2021-04-21 11:58 请叫我小马驹 阅读(254) 评论(0) 推荐(0)
摘要: 先创建数据库和表,使用的是MySQL数据库。 create database mybatis; use mybatis; CREATE TABLE `accountdo` ( `id` varchar(255) NOT NULL COMMENT '账户', `name` varchar(255) D 阅读全文
posted @ 2021-03-15 11:54 请叫我小马驹 阅读(921) 评论(0) 推荐(0)