首页 \ 问答 \ 检查约束(check constraint)

检查约束(check constraint)

嗨我想在sql server中添加约束我尝试这个但不工作我需要检查一个单词2 char和3个数字后面的例子aa192:

create table test(
    idtest int primary key ,
    neEdition varchar(50)
);

alter table test add constraint ch_like check(neEdition like'[a-z][a-z][0-9][0-9][0-9]');

hi i want add constraint in sql server i try this but not work i needd check if a word 2 char and 3 numbers after example aa192:

create table test(
    idtest int primary key ,
    neEdition varchar(50)
);

alter table test add constraint ch_like check(neEdition like'[a-z][a-z][0-9][0-9][0-9]');

原文:https://stackoverflow.com/questions/46253857
更新时间:2022-03-20 11:03

最满意答案

我改变了这个:

location / {
        index index.html index.php index.htm;
        try_files $uri @opencart;
}

对此:

location / {
        index index.html index.php index.htm;
        try_files $uri $uri/ @opencart;
}

它现在有效。


I changed this:

location / {
        index index.html index.php index.htm;
        try_files $uri @opencart;
}

To this:

location / {
        index index.html index.php index.htm;
        try_files $uri $uri/ @opencart;
}

It now works.

相关问答

更多
  • 网站的问题,不是你的问题。
  • 403 错误是由两种原因引起的 1、 网站没有设置默认页 2、权限不足 主要针对第二个原因分析解决办法 1、如果你是通过浏览器正常访问 当出现403时 尝试清空浏览器记录(cookie) 再次访问如果还是出现403 在尝试切换ip(代理或重拨宽带) 如果还是不能访问 那没办法 堆糖网在服务器端 根据你的mac地址或者其他的唯一标识限制了你的访问 有些网站为了防止其他人采集他们会限制单个用户在一定时间内访问的次数 2、如果你是通过程序进行采集 可以尝试伪造Referer、Host、User-Agent
  • 值得庆幸的是,我在发布问题后不久就想到了这一点,但我认为以下信息可供其他寻求解决类似问题的人使用: 相关日志不在access.log ,而是在error.log 。 运行此操作向我显示.htaccess文件不在预期的位置。 然后我将它移动到正确的位置,并能够验证确定。 Thankfully I figured this out not long after the posting the question, but I think the following information would be ava ...
  • 与旧版Docker 1.7.1和RHEL6相关的特殊情况意味着您必须安装RHEL7。 SELinux不适用于它。 有一些核心的RHEL6库问题(共享库权限错误)使得使用Docker 1.7.1几乎不可能。 标签都是错的。 图像中的进程是init_rc_t类型的标签,这些标签是不正确的。 这些文件可以更改为httpd_sys_content_t,但不起作用。 我认为也可能有一些nginx:nginx(UID GID不匹配)问题。 但是,真的,这是放弃时间。 不值得投入时间来解决它,我的主机提供商不会打电话给R ...
  • passenger_enabled指令只能在配置文件中出现一次。 将其保留在服务器级别并删除您的location /阻止。 此外,您可能需要考虑在server部分添加资产块以允许在浏览器中进行静态资产缓存( 只要您使用rails资产管道 ,您应该这样做): http { passenger_root /home/aurelplouf/.rvm/gems/ruby-2.1.2@rails3.2/gems/passenger-5.0.11; passenger_ruby /home/aurelplouf ...
  • 经常被忽略的一个权限要求是用户在文件的每个父目录中需要x权限才能访问该文件。 检查www / data x访问的/,/ home,/ home / demo等的权限。 我的猜测是/ home可能是770,www-data不能通过它来获取任何子目录。 如果是,请尝试chmod o + x / home(或任何目录拒绝请求)。 编辑:要轻松显示路径上的所有权限,可以使用namei -om /path/to/check One permission requirement that is often overlo ...
  • 我改变了这个: location / { index index.html index.php index.htm; try_files $uri @opencart; } 对此: location / { index index.html index.php index.htm; try_files $uri $uri/ @opencart; } 它现在有效。 I changed this: location / { in ...
  • /var/www/domain.com/public_html/support/current不存在,或者对于运行Apache的用户,其权限不正确。 检查主Apache配置中的User和Group设置,以了解它们是什么。 您可能还需要检查错误日志以获取其他线索。 Either /var/www/domain.com/public_html/support/current doesn't exist, or its rights are not correct for user Apache runs on. ...
  • 这是因为你正在击中第一个位置块并且没有找到索引文件。 That's because you are hitting the first location block and the index file is not found.
  • 您不需要在nginx文件中添加passenger_ruby和passenger_ruby。 您可以查看文件/etc/nginx.conf。 你可以看到有ini分机的passenger_root和passenger_ruby只是取消了它的注释。 或者看起来像包含/etc/passenger.conf的行只是取消注释它。 我认为你的问题在于乘客包装。 You don't need to add passenger_ruby and passenger_ruby in nginx file. You can lo ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)