Questions tagged [single-quotes]

Questions related to the use of single-quotes in different programming languages.

352 questions
0
votes
3 answers

datatable .net 2.0 select with double single quote returns no results

I've datatable as follows DataTable ex= new DataTable(); ex.Columns.Add("Object"); ex.Columns.Add("Found"); ex.Rows.Add("vase''s","True"); string keyword="vase''s"; DataRow [] drs = ex.Select("[Object] like '%" + keyword + "%'"); drs is always…
user690069
  • 330
  • 4
  • 13
0
votes
2 answers

Does putting '' on SQL column names run from a PHP program have any effect?

Is there any difference between the following two codes? Does putting '' around the column names have any effect in SQL run from a PHP program ? Code 1: SELECT f.id FROM sample_table f; Code 2: SELECT f.'id' FROM sample_table f;
SIDDHARTH MEHTA
  • 111
  • 1
  • 2
  • 7
0
votes
1 answer

Use single quotes within a string for prepared statement

I have a Like condition in a query I need to filter on first and last name in a users table. My variables are set up like this: $firstname = Input::get('firstname'); $lastname = Input::get('lastname'); $myparameters = array(); $filterfirst = "'%" .…
Jeremy C.
  • 2,405
  • 1
  • 12
  • 28
0
votes
0 answers

' - single quotes key in cmd not working

just installed mysql and now trying to work with it (adding databases/tables) through cmd (windows) but when I use single quotes from my keyboard I mean "the key from the left near enter" it does not work. The layout is EN US. Yes, it works with the…
0
votes
0 answers

Android Sqlite insertion of a single quote ex. "O'Connor"

For some reason I can't get the single quote with apostrophes in a name field to submit to my sqlite database. Here's where I get the input and call the database function if(fnamelabel.contains("'") || fnamelabel.contains("-")){ …
Phenom
  • 23
  • 7
0
votes
3 answers

quotes in Jquery selectors

I read a couple of answer about a similar question and people always say that there is no difference between a single and a double quote. The problem is I have a little line of code that somehow seem to matter... $("li[data-type|='veg']").append('…
0
votes
0 answers

Linux outputs variable with single quotes around special characters

Korn shell 93u+ 2>&1 | tee -a ${LOGFILE} puts the output to a file. I want to add that command to each function I run. For example: _cleanup_test 2>&1 | tee -a ${LOGFILE} That works fine. But I want to replace 2>&1 | tee -a ${LOGFILE} with a…
0
votes
0 answers

single quotes around server variable classic asp

I have the following link being created dynamically in a legacy .asp application. <%=sClientName%> When this renders it…
Nick G
  • 1,209
  • 8
  • 34
  • 58
0
votes
2 answers

perl regex remove quotes from string

I would like to remove trailing and leading single quotes from a string, but not if a quote starts in the middle of the string. Example: I would like to remove the quotes from 'text is single quoted' but not from text is 'partly single…
user1981275
  • 13,002
  • 8
  • 72
  • 101
-1
votes
1 answer

How to assign a variable string with single quotes to Jinja2

I receive a json payload like below: { "address": { "summary": "my home's address" } } I have a JSON with jinja template: { "parent_elem": [{ "address": "{{DATA.address}}" }] } Then, I try to copy the value…
ankur jain
  • 89
  • 1
  • 1
  • 3
-1
votes
1 answer

How to add single inverted comma after column name

enter image description here I want to print the statement like [Emp_name's salary is .....] ex.- Aniket's salary is... What will be the syntax for this? I have tried this SQL: select empname + 's''salary is' + cast(salary as varchar) from…
-1
votes
1 answer

Ansible rsync / synchronize fails when filename contain whitespaces and are enclosed in single quotes

I was advised on stackoverflow to call ansible-playbook from Jenkins pipeline script as below: sh ''' ansible-playbook /web/playbooks/getfiles.yml -e "dest_host='$dest_host'" -e "dest_user='$dest_user'" -e…
Ashar
  • 2,942
  • 10
  • 58
  • 122
-1
votes
1 answer

How does bash parse double quotes and single quotes

I have to implement a minishell written in C for my school homework,and I am currently working on the parsing of the user input and I have a question regarding single quote and double quote. How are they parsed, I mean many combo are possible as…
dieri
  • 23
  • 6
-1
votes
1 answer

How to enclose a string within single quotes in Ansible

Below is the string ORACLE_THIN PTEST1 my$pass myhost-SCA.mybank.com:1521/OLTP445 Desired output with password enclosed in single quotes: ORACLE_THIN PTEST1 'my$pass' myhost-SCA.mybank.com:1521/OLTP445 Below is my ansible playbook: - debug: …
Ashar
  • 2,942
  • 10
  • 58
  • 122
-1
votes
1 answer

Powershell - Single Quote in String Variable with XPath

Dear Powershell fellows, i have a (maybe) very simple problem, but i have no idea how to solve it. I want to use a String Variable, that contains a single quote, within a XPath notation. I use the CMDlet Select-Xml. If there is no single quote…
LKo.exp
  • 164
  • 7