Jump to content

help me with sql


DiGiTal

Recommended Posts

Posted
34 minutes ago, DiGiTal said:

an example ??

script code:

sometable = {1, 2, 3}
toJSON(sometable)

-- OR
toJSON({1, 2, 3})

in database (with toJSON)

[[1, 2, 3]]

it gives additional box brackets

  • Like 1
Posted
3 minutes ago, Juuve said:

script code:


sometable = {1, 2, 3}
toJSON(sometable)

-- OR
toJSON({1, 2, 3})

in database (with toJSON)


[[1, 2, 3]]

it gives additional box brackets

what i writte in SQL  ?

in database (with toJSON)

?

 
  1.  
  2. [[1, 2, 3]]

 

this is the result in my db you mean?

 

Posted
2 hours ago, DiGiTal said:

this is the result in my db you mean?

uhhhh

Here better example.

script:

dbExec(db, "UPDATE Vehicles SET Number = ? WHERE ID = ?", toJSON(newplate), vehid)

database:

screenshot_1.png

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...