sql between and 复制表

╰半夏微凉° 2021-10-30 03:20 408阅读 0赞

1 -between and 包括边界值,如果是日期 截止日期到00点0分 如果截止日期:2019-7-26 则为:2019-7-26 00:00:00

not between adn 不包括边界值

2 复制表

select * into newtable from oldtable where 1=2

insert into newtable select * from oldtable

转载于:https://www.cnblogs.com/caojuansh/p/11249230.html

发表评论

表情:
评论列表 (有 0 条评论,408人围观)

还没有评论,来说两句吧...

相关阅读

    相关 SQLbetween and

    SQL中 between and是包括边界值的,not between不包括边界值,不过如果使用between and 限定日期需要注意,如果and后的日期是到天的,那么默认为