mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-10-28 06:21:07 +03:00 
			
		
		
		
	Added %% use to the docs
This commit is contained in:
		
							parent
							
								
									c7d1271ab4
								
							
						
					
					
						commit
						ea203f0587
					
				|  | @ -97,6 +97,9 @@ many placeholders can use the same values:: | |||
|     ...         VALUES (%(int)s, %(date)s, %(date)s, %(str)s);""", | ||||
|     ...     {'int': 10, 'str': "O'Reilly", 'date': datetime.date(2005, 11, 18)}) | ||||
| 
 | ||||
| When parameters are used, in order to include a literal ``%`` in the query you | ||||
| can use the ``%%`` string. | ||||
| 
 | ||||
| While the mechanism resembles regular Python strings manipulation, there are a | ||||
| few subtle differences you should care about when passing parameters to a | ||||
| query: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user