Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for string variable as sqlite table name

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
May 24, 2021 at 16:32 audit Suggested edits
May 24, 2021 at 18:00
May 18, 2021 at 17:36 answer added gimix timeline score: 0
May 18, 2021 at 17:18 comment added khelwood Be careful to sanitise the user input before you glue it into an SQL statement.
May 18, 2021 at 17:16 history edited celluks CC BY-SA 4.0
added 66 characters in body
May 18, 2021 at 17:15 comment added celluks the variable is created by user input, sorry for not clarifying i'll update the post
May 18, 2021 at 17:14 answer added Stefan Sonnenberg-Carstens timeline score: 2
May 18, 2021 at 17:13 comment added Mark It's not really clear what you are after — how are you going to reference that global variable if not by name and if you know the name, why can't you use a string? Can you add a little code to clarify?
May 18, 2021 at 17:13 comment added John Gordon You can use simple string concatenation. "CREATE TABLE " + tablename
May 18, 2021 at 17:10 history asked celluks CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /