Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I want to save data in to sqlite using swift. How can i handle the special character in swift when saving the data?
Posted
Comments
Sergey Alexandrovich Kryukov 27-Sep-14 0:18am    
Do you think any characters are "special"? What are they?
—SA
amit_83 27-Sep-14 5:07am    
i want to handle single quote, double quote etc..
how can i handle these character to insert?
Sergey Alexandrovich Kryukov 27-Sep-14 9:30am    
Do you mean in a SQL query? Search "how to escape (single OR double quote)". With parametrized statements, such problems don't even exist.
What exactly do you mean by Swift? (Apple language, script language, OpenStack, something else..?)
—SA
amit_83 9-Oct-14 1:43am    
I am talking about Apple language, script language
PIEBALDconsult 27-Sep-14 1:18am    
Probably with a parameter; same as with any language.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900