Solved

Script files

Posted on 2002-05-31
5
175 Views
Last Modified: 2010-04-04
What are script files? How do I use script files to create and delete tables.
How do I load data into tables using script files. PLEASE CAN YOU PROVIDE A EXAMPLE. I WANT TO USE INTERBASE.
tHANK YOU
0
Comment
Question by:mamello
5 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 7046469
Hi mamello@devx,

run IBConsole, connect to database and use Database | View metadata.
there is good sample to explore scripts.

-------
Igor
0
 
LVL 7

Accepted Solution

by:
Motaz earned 50 total points
ID: 7046472
did you mean SQL statements:

to create table:
open Interbase Console, select your database and write and execute:

create table Friends (FriendID integer not null primary key, Name VarChar(20), Address VarChar(30));

to Insert data:

insert into Friends values (1, 'Motaz', 'Sudan');
or
insert into Friends (FriendID, Name) values (2, 'John');

to retreive data:

select * from Friends

Motaz
0
 
LVL 1

Assisted Solution

by:thegroup
thegroup earned 50 total points
ID: 7047322
A script is any sequence of actions a SQL Engine could interpret an act on.
The scripts come in two flavors. DDL and DML (Data Definition Languaje and Data Manipulation Languaje)

DDL lets you create and alter data "structures" like create tables, index, drop procedures and so on (create table "name" ..., drop procedure "test")

DML lets you act on "data" itself, doing querys, updating values, deleting. (select * from "name", update "name" set field = "value" where "logical condition".

Delphi send those scripts to the SQL Engine that interprets and execute them.

Hope I'm clear (english is not my native languaje)
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9010383
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between thegroup and Motaz

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now