Deleting rows
Built-In Procs¶
JPortal ships with a number of built-in procs to allow easy deleting of records in a table.
DATABASE ExampleDatabase
PACKAGE com.example.db
SERVER ExampleServer
SCHEMA ToDoList_App
TABLE ToDoList
ID SEQUENCE
ListName CHAR(255)
ListType SHORT (Private=1, Public=2)
Description CHAR(255)
LastUpdated TIMESTAMP
KEY PKEY PRIMARY
ID
//Simple CRUD queries are available out of the box with JPortal2
PROC DeleteOne
PROC DeleteBy ListName ListType
PROC DeleteAll
DeleteOne¶
Deletes an existing record by primary key.
DeleteOne
[(standard)]
DeleteOne will delete an existing record in a table, by primary key. If no primary key is specified on the table, JPortal2 will issue a warning at compile time.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
DeleteBy¶
Deletes record by user specified keys
1 |
|
DeleteBy will delete the records of a table that are specified by the keys specified
by DeleteKeyColumn
's.
1 |
|
DeleteAll¶
Deletes all existing records in table.
DeleteAll
DeleteAll will delete all existing records in a table.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
1 2 3 4 5 6 7 8 9 10 |
|