zoukankan
html css js c++ java
测试MSSQL保留字
<HTML> <HEAD><TITLE>验证SQL保留字</TITLE> <SCRIPT LANGUAGE="VBScript"> <!-- function keyword(str) x="action,add,aggregate,all,alter,after,and,as,asc,avg,avg_row_length,auto_increment,between,bigint,bit,binary,blob,bool,both,by,cascade,case,char,character,change,check,checksum,column,columns,comment,constraint,create,cross,current_date,current_time,current_timestamp,data,database,databases,date,datetime,day,day_hour,day_minute,day_second,dayofmonth,dayofweek,dayofyear,dec,decimal,default,delayed,delay_key_write,delete,desc,describe,distinct,distinctrow,double,drop,end,else,escape,escaped,enclosed,enum,explain,exists,fields,file,first,float,float4,float8,flush,foreign,from,for,full,function,global,grant,grants,group,having,heap,high_priority,hour,hour_minute,hour_second,hosts,identified,ignore,in,index,infile,inner,insert,insert_id,int,integer,interval,int1,int2,int3,int4,int8,into,if,is,isam,join,key,keys,kill,last_insert_id,leading,left,length,like,lines,limit,load,local,lock,logs,long,longblob,longtext,low_priority,max,max_rows,match,mediumblob,mediumtext,mediumint,middleint,min_rows,minute,minute_second,modify,month,monthname,myisam,natural,numeric,no,not,null,on,optimize,option,optionally,or,order,outer,outfile,pack_keys,partial,password,precision,primary,procedure,process,processlist,privileges,read,real,references,reload,regexp,rename,replace,restrict,returns,revoke,rlike,row,rows,second,select,set,show,shutdown,smallint,soname,sql_big_tables,sql_big_selects,sql_low_priority_updates,sql_log_off,sql_log_update,sql_select_limit,sql_small_result,sql_big_result,sql_warnings,straight_join,starting,status,string,table,tables,temporary,terminated,text,then,time,timestamp,tinyblob,tinytext,tinyint,trailing,to,type,use,using,unique,unlock,unsigned,update,usage,values,varchar,variables,varying,varbinary,with,write,when,where,year,year_month,zerofill" y=split(x,",") for i=0 to ubound(y) if str=y(i) then keyword=y(i)&"属于保留字" exit for else keyword=str&"不属于保留字" end if next ERASE y msgbox(keyword) end function Sub Button1_OnClick Dim TheForm Set TheForm = Document.ValidForm If len(trim(TheForm.Text1.Value))<=0 Then MsgBox "请输入" Else keyword(TheForm.Text1.Value) End If End Sub --> </SCRIPT> </HEAD> <BODY> <H3>SQL保留字验证</H3><HR> <FORM NAME="ValidForm"> 请输入保留字: <INPUT NAME="Text1" TYPE="TEXT" size=8> <INPUT NAME="Button1" TYPE="BUTTON" VALUE="提交"> </FORM> </BODY> </HTML>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
查看全文
相关阅读:
[转] 分代垃圾回收的 新旧代引用问题(原标题:Back To Basics: Generational Garbage Collection)
javascript中数组总结
mybatis 与 反射
mybatis 与 缓存
mybatis 与 日志
mybatis与 Exception
mybatis 与 xml
Redis -- 03 持久化
Redis -- 02 配置文件解析
【翻译】Crafting a Next-Gen Material Pipeline for The Order: 1886
原文地址:https://www.cnblogs.com/RuiLei/p/383734.html
最新文章
python 发展之路
前端 制图网址
python IO多路 IO多路复用+socket实现 协程
python 并发 进程 数据共享 锁 进程池
python 并发 GIL锁 锁 线程池 生产者消费模型
python 并发 中线程和进程相关
python 网络编程之路 网络基础 FTP
python 网络编程
python 网络编程
1.java总结
热门文章
2.jvm垃圾回收机制
3. 常用的垃圾收集算法
5.GC是什么时候触发的
1.jvm内存模型
1.linux ping:unknown host www.***.***
1.kafka启动遇到问题:zookeeper拒绝连接
5.mysql8.0安装遇到的问题
二,多线程基础
一,前言
[转] Java 的泛型擦除和运行时泛型信息获取
Copyright © 2011-2022 走看看