case-sensitive

SQL Server check case-sensitivity?

不羁的心 提交于 2019-11-26 13:04:11
How can I check to see if a database in SQL Server is case-sensitive? I have previously been running the query: SELECT CASE WHEN 'A' = 'a' THEN 'NOT CASE SENSITIVE' ELSE 'CASE SENSITIVE' END But I am looking for other ways as this has actually given me issues in the past. Edit - A little more info: An existing product has many pre-written stored procedures. In a stored procedure @test != @TEST depending on the sensitivity of the server itself. So what I'm looking for is the best way to check the server for its sensitivity. Raj More Collation can be set at various levels: Server Database Column

Reason why oracle is case sensitive?

元气小坏坏 提交于 2019-11-26 13:01:36
问题 Is there a reason why Oracle is case sensitive and others like SQL Server, and MySQL are not by default? I know that there are ways to enable/disable case sensitivity, but it just seems weird that oracle differs from other databases. I\'m also trying to understand reasons for case sensitivity. I can see where \"Table\" and \"TaBlE\" can be considered equivalent and not equivalent, but is there an example where case sensitivity would actually make a difference? I\'m somewhat new to databases

Contains case insensitive

落花浮王杯 提交于 2019-11-26 12:43:50
I have the following: if (referrer.indexOf("Ral") == -1) { ... } What I like to do is to make Ral case insensitive, so that it can be RAl , rAl , etc. and still match. Is there a way to say that Ral has to be case-insensitive? Add .toLowerCase() after referrer . This method turns the string in a lower case string. Then, use .indexOf() using ral instead of Ral . if (referrer.toLowerCase().indexOf("ral") === -1) { The same can also be achieved using a Regular Expression (especially useful when you want to test against dynamic patterns): if (!/Ral/i.test(referrer)) { // ^i = Ignore case flag for

Should URL be case sensitive?

梦想的初衷 提交于 2019-11-26 12:41:41
I noticed that HTTP://STACKOVERFLOW.COM/QUESTIONS/ASK and http://stackoverflow.com/questions/ask both works fine - actually the previous one is converted to lowercase. I think that this makes sense for the user. If I look at Google then this URL works fine: http://www.google.com/intl/en/about/corporate/index.html but this one with "ABOUT" is not working: http://www.google.com/intl/en/ABOUT/corporate/index.html Should the URL be case sensitive? jldupont According to W3's " HTML and URLs " they should: There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not

Are PHP functions case sensitive?

心不动则不痛 提交于 2019-11-26 12:21:29
I was digging through some code, and I found some calls to mySQL_fetch_array . Is PHP case sensitive about function names? I recall reading this somewhere but can't seem to find any reference to it. SIFE I am quoting from this : Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration. So, its looks like user-defined functions are not case-sensitive, there was a vote for making functions/objects under PHP5 case-sensitive. No. PHP functions are not case sensitive. TL;DR: class names are case-insensitive, but use always the

Is VB really case insensitive?

流过昼夜 提交于 2019-11-26 11:04:11
问题 I\'m not trying to start an argument here, but for whatever reason, it\'s typically stated that Visual Basic is case insensitive and C languages aren\'t (and somehow that is a good thing). But here\'s my question: Where exactly is Visual Basic case insensitive? When I type... Dim ss As String Dim SS As String ...into the Visual Studio 2008 or Visual Studio 2010 IDE, the second one has a warning of \" Local variable SS is already declared in the current block \". In the VBA VBE, it doesn\'t

Are column and table name case sensitive in MySQL?

杀马特。学长 韩版系。学妹 提交于 2019-11-26 11:04:09
问题 If I have a column names called category_id and Category_Id , are they different? And if I have table called category and Category , are they different? 回答1: On Unix, table names are case sensitive. On Windows, they are not. Fun, isn't it? Kinda like their respective file systems. Do you think it's a coincidence? In other words, if you are planning on deploying on a Linux machine, better test your SQL against a Linux-based MySQL too, or be prepared for mysterious "table not found" errors at

Why are many languages case sensitive?

浪尽此生 提交于 2019-11-26 10:57:22
问题 Why are many languages case sensitive? Is it simply a matter of inheritance? C++ is case-sensitive because C is, Java is case-sensitive because C++ is, etc.? Or is there a more pragmatic reason behind it? 回答1: Unix. Unix was case sensitive, and so many programming languages developed for use on Unix were case sensitive. Computers are not forgiving - an uppercase character is not the same thing as a lowercase character, they're entirely different. And back when processing cycles, RAM and so

SQL unique varchar case sensitivity question

送分小仙女□ 提交于 2019-11-26 10:57:01
问题 I\'m trying to populate a SQL table with a list of words. The table itself it pretty simple: CREATE TABLE WORDS( ID BIGINT AUTO_INCREMENT, WORD VARCHAR(128) NOT NULL UNIQUE, PRIMARY KEY(ID) ); The problem I\'m running into is this: when I do the following inserts back to back INSERT INTO WORDS(WORD) VALUES(\'Seth\'); INSERT INTO WORDS(WORD) VALUES(\'seth\'); The second insert fails with a constraint violation (\"Duplicate entry \'seth\' for key \'WORD\'\"). How can I get the UNIQUE constraint

How to force case sensitive table names?

梦想与她 提交于 2019-11-26 10:42:23
问题 I\'m working on a MySQL database in windows. I must move it into a Linux environment. MySQL database contains a lot of tables and stored procedures which are CASE SENSITIVE. When I backup my database, all table names are forced lowercase so when I restore it in Linux it complains because you can\'t make duplicate tables and stored procedures. I don\'t have access to the MySQL configuration in the linux environment so I cant change MySQL settings to case insensitive mode. Is there any way to