Sloppy Designs
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • Tebex
    (opens in a new tab)
  • About

  • Bridge
    • Installation
    • Core
      • Insert
      • Prepare
      • Query
      • Scalar
      • Single
      • Transaction
      • Update
      • Player
      • Client
      • Server
      • Locale
      • Client
      • Server
      • Item
    • Target
      • Options
      • BoxZone
      • PolyZone
      • SphereZone
      • CZone
      • PolyZone
      • BoxZone
      • SphereZone
      • Client
      • Server
      • Shared
  • Unit
  • SD-Notify
    • Types
    • Positions
    • Config
    • Framework
  • SD-Merchants
      • Paths
      • Merchants
      • Config
      • Shop
      • Blips
      • Currency
      • Items
    • SD-Paycheck
      • Index
    • SD-Menu
      • Config
      • Menu
      • Input
    • SD-KeyPad
  • Tebex
    (opens in a new tab)
  • About

  • Bridge
    • Installation
    • Core
      • Insert
      • Prepare
      • Query
      • Scalar
      • Single
      • Transaction
      • Update
      • Player
      • Client
      • Server
      • Locale
      • Client
      • Server
      • Item
    • Target
      • Options
      • BoxZone
      • PolyZone
      • SphereZone
      • CZone
      • PolyZone
      • BoxZone
      • SphereZone
      • Client
      • Server
      • Shared
  • Unit
  • SD-Notify
    • Types
    • Positions
    • Config
    • Framework
  • SD-Merchants
      • Paths
      • Merchants
      • Config
      • Shop
      • Blips
      • Currency
      • Items
    • SD-Paycheck
      • Index
    • SD-Menu
      • Config
      • Menu
      • Input
    • SD-KeyPad
Question? Give us feedback → (opens in a new tab)Edit this page
Bridge
Database
Insert

Insert

Insert new row into table

Database.insert(query, data, cb)
  • query: string
  • data?: table
  • cb?: function(result)

returns: number

local id = Database.insert('INSERT INTO `table` (column1, column2) VALUES (?, ?)', { 'value1', 'value2' })
 
print(id)

2024 © Sloppy Designs