Sorana Indonesia | Media Informasi Online

Sorana Indonesia Media Informasi Online Terkini, Akurat, Jelas, Padat REVISI TERBARU DAN SELALU TERDEPAN

 

Kaskus Changing Domain co.id and Here's how to access


kaskus Changing Domain co.id and Here's how to access

Read the following to open the site kaskus


Information regarding the inaccessible kaskus.us actually been published on the blog last night Karo Cyber​​. Now the problem is how to open the sitekaskus that if through the www domain. kaskus.us not accessible anymore? Actually there are two alternatives that can be made ​​to visit the site kaskus. The first way, which is visited by the address www. kaskus.com and that both sites can also be visited from the address www. kaskus.co.id.

It is unknown what the real reason kaskus domain address was changed. Indeed, there is information that surfaced kaskus.us domain address can not be accessed due to crash the DNS (Domain Name System). But as the previously known sites have also experienced turnover kaskus domain address of kaskus.com be kaskus.us. At that time, the reason the site domain of the largest forum in Indonesia is changing due to DDOS attack.

Could kaskus sites are now also attacked by DDOS so back to change the domain address? So far there has been no official clarification on the matter of the Dervish as founder Andrew kaskus site. But there are also some people who suspect that the steps taken by the party itself is a step kaskus looking for mere sensation.

Apart from looking for the sensation or not. But certainly farkaskus site has become the largest site in Indonesia with a number membersnya more than 4 million people.

Hopefully kaskus.us can immediately access the newbie must have been waiting for normal web forum back their pride.
Do not just copy and paste, please read the rules di sini ! Post By Lae Afif TV Online

KaskusTidak dapat diakses? - Berikut cara mengaksesnya


KaskusTidak dapat diakses? - Berikut cara mengaksesnya



Sorana Indonesia Media Informasi Online
- Sobat pasti tau kan web forum terbesar di indonesia, kaskus.us ya betul website forum raksasa di Indonesia ini mulai malam 26 Mei 2012 sampai hari ini 27 Mei 2012 mengalami down, web kaskus.us tidak bisa diakses.

Waaah, masak sih website forum terbesar di Indonesia sampai mengalami down, bukankah pastinya web ini didukung oleh sumber daya manusia / webmaster yang tidak sembarangan. Juga pastinya di kelola di server yang handal. Namun kenyataannya demikian bahwa saat ini web kaskus.us emang tidak bisa dibuka alias tidak bisa diakses.

Kalau di tempat sobat, bisa nggak akses web kaskus.us ? Mungkin ada yang tau penyebabnya apa kok sampai web kaskus.us tidak bisa diakses? Kalau hipotesis saya sih mungkin karena kaskus.us akan segera mengalami perubahan menjadi versi terbarunya. Well, hanya hipotesis.

Semoga kaskus.us bisa segera dapat diakses deh, para kaskuser pastilah sangat menanti normalnya kembali web forum kebanggaan mereka.



Baca berikut untuk membuka situs kaskus

Informasi mengenai kaskus.us yang tidak bisa diakses sebenarnya sudah dipublikasikan semalam di blog Karo Cyber. Sekarang permasalahannya bagaimana cara buka situs kaskus yang apabila melalui domain www. kaskus.us tidak dapat diakses lagi? Sebenarnya ada 2 alternatif yang bisa dilakukan untuk mengunjungi situs kaskus. Cara pertama, yaitu mengunjungi melalui alamat www. kaskus.com dan yang kedua situs ini juga bisa dikunjungi dari alamat www. kaskus.co.id.

Tidak diketahui apa alasan sebenarnya alamat domain kaskus ini dirubah. Memang ada informasi yang mengemuka alamat domain kaskus.us tidak dapat diakses dikarenakan mengalami gangguan DNS (Domain Name System). Namun seperti diketahui sebelumnya situs kaskus juga pernah mengalami pergantian alamat domain dari kaskus.com menjadi kaskus.us. Waktu itu alasan domain situs forum terbesar di Indonesia ini berubah lantaran diserang DDOS.

Mungkinkah situs kaskus yang sekarang juga terserang oleh DDOs sehingga kembali mengalami perubahan alamat domain? Sejauh ini belum ada klarifikasi resmi mengenai hal tersebut dari pihak Andrew Darwis selaku founder situs kaskus. Namun sebagian kalangan ada juga yang menduga kalau langkah yang dilakukan oleh pihak kaskus ini sendiri adalah langkah cari sensasi belaka.

Terlepas dari cari sensasi atau bukan. Namun yang pasti sejauh ini situs kaskus memang menjadi situs yang terbesar di Indonesia dengan jumlah membersnya lebih dari 4 juta orang.

Jangan asal copy paste, baca aturanya di sini ! Post By Lae Afif TV Online

Cara Mendapatkan Domain Gratis Free 100% Dari Intuit


Cara Mendapatkan Domain Gratis Free 100% Dari Intuit


Sorana Indonesia Media Informasi Online- Selamat siang sahabat Sorana Indonesia
kali ini saya membagikan trik untuk mendapatkan DOMAIN TDL ( .COM .NET .INFO ) domain gratis free 100% dari Intuit LEWAT HP juga bisa .

Syaratnya :

1. Anda harus punya akun di intuitcom.
2. Kalau belum punya silahkan daftar dulu ya :)
3. Setelah anda mendaftar dapat login dini Login Intuit
4. Masuk ke bypass domain free Disini
5. Masukkan email anda yg terdaftar di Intuit dan domain yang anda diingkan
*pastikan domain yg anda inginkan belum terdaftar
6. Centang Saya Setuju Jika anda ingin Free :D
7. Submit, selesai dah . . .
8. O ya saya lupa kalau domain anda sudah terdaftar silahkan gabung disini ya
Diskusindo Forum Komunitas Diskusi Anak Indonesia Terbesar Dan No. 1 Di Indonesia

Selamat kamu sudah mendapatkan sebuah Domain gratis!

Domain yang sudah berhasil didaftarkan akan diproses selama 24 jam. Jangan lupa komentarnya! Terima kasih.

WARNING:
- Tidak diperbolehkan order Domain lebih dari satu Domain dalam satu akun, nanti Domain kamu di Suspend.

- Tidak diperbolehkan menjual domain yang kamu dapatkan dari Intuit atau saya hapus Bypass ini.

- Domain yang diperbolehkan .com .net .org .info .biz .name

- Pergunakanlah dengan bijak.

- Resiko ditanggung sendiri.

tugas sudah selesai, semoga bermaanfaat dan admin mau tidur lagi ahh . .


Jangan asal copy paste, baca aturanya di sini ! Post By Lae Afif TV Online

Forum Diskusindo Forum Komunitas Diskusi Anak Indonesia

Media Informasi Online Sorana Indonesia- Diskusindo Forum Komunitas Diskusi Anak Indonesia Terbesar Dan No. 1 Di Indonesia


Diskusindo Forum Komunitas Diskusi Anak Indonesia Terbesar Dan No. 1 Di Indonesia telah dibuka bagi anda semua forum ini dibangun oleh Afif Kurniawan Sinuhaji langsung aja segera gabung di Diskuindo www.diskusindo.com
Jangan asal copy paste, baca aturanya di sini ! Post By Lae Afif TV Online

[Share Ebook ] Tips Menghadapi Badai Google PenguinTimes!

[Share Ebook ] Tips Menghadapi Badai Google PenguinTimes!

Ebook Google PenguinTimes!

 Selamat Sore sahabat Sorana Indonesia, mungkin sudah tau tentang Google Penguin yg lagi gentar- gentarnya sekarang, kali ini saya akan memberikan pencerahan untuk mengahadapi Badai Google Penguin Times.

         Banyak sekali sahabat blogger yang risau dengan Google Penguin,  kali ini saya akan memberikan Free Ebook Google PenguinTimes!. Ebook ini saya ambil dari sebuah Forum Komunitas Publisher Indonesia- Adsense-ID. Jadi, saya cuma merangkum saja.

    Dan beberapa sumber di notes-nya para master di facebook, Oke, langsung aja sedot Ebooknya di sini: 

 Password: Afif Kurniawan

Saya sadar, saya masih newbie banget, Jadi mohon maaf jika apa yang saya share belum menjawab permasalahan anda. Tapi setidaknya ini dapat menjawab sebagian dari masalah anda, Ilmu ini baru karena saya dapat langsung dari pengamat algoritma google.

Oke, oke. langsung aja disedot Ebook Google PenguinTimes!. Setelah disedot, saya tunggu diskusinya yak!, Mudah- mudahan Ebook Google PenguinTimes-nya bermanfaat bagi anda!

Jangan lupa Follow blog saya ya... :-)
Jangan asal copy paste, baca aturanya di sini Post By Lae Afif 
TV Online

Memanfaatkan JV Contest Untuk Bergabung Dengan Affiliate Marketer Kelas Wahid

Sorana Indonesia Media Informasi Online- Memanfaatkan JV Contest Untuk Bergabung Dengan Affiliate Marketer Kelas Wahid

Sorana Indonesia Media Informasi Online- Salah satu poin penting untuk menjadi Affiliate Marketer adalah memiliki produk yang bagus untuk dipromosikan. Produk ini tentunya bukan produk Anda sendiri, tapi produk orang lain dan Anda menjadi affiliate dari produk tersebut.

Sorana Indonesia Media Informasi Online- Masalah klasik bila Anda masih anak bawang di dunia Internet Marketing adalah, permintaan Anda untuk menjadi affiliate dari suatu produk seringkali diabaikan atau ditolak oleh para Vendor :D Mengapa? Karena mereka tidak mengenal Anda, mereka tidak pernah mendengar nama Anda. Para Vendor umumnya hanya ingin menerima Affiliate yang sudah punya nama, karena nama baik produk mereka bisa terpengaruh oleh para Affiliate. Banyak Affiliate yang melakukan cara promosi tidak etik dengan menggunakan false advertising, SPAM, dsb. Karena itu sebagian besar Vendor sangat berhati-hati dalam menerima Affiliate.

Sorana Indonesia Media Informasi Online- Salah satu cara untuk mengatasi hal tersebut adalah dengan mengikuti JV Contest. Karena bila Anda masuk menjadi salah satu pemenang, nama Anda akan mulai dikenal. :) Kedepannya Anda tidak perlu lagi mengemis kepada para Vendor untuk menerima Affiliate Request Anda, justru para Vendor yang akan mengejar-ngejar Anda.

Studi Kasus JV Contest

Sorana Indonesia Media Informasi Online- Beberapa minggu yang lalu saya mencoba mengikuti JV Contest dari salah satu Vendor di WarriorForum. Hasilnya cukup memuaskan, berada di urutan paling buncit. :) Tapi tidak mengapa karena ada ratusan Affiliate dan Internet Marketer lainnya yang melihat nama saya di LeaderBoard bersama 4 Affiliate Marketer kelas wahid.

Affiliate Contest LeaderBoard

Mike Lantz adalah pemilik WarriorPlus.com, memiliki ratusan ribu Subscriber Lists. Bila Anda pernah membeli produk WSO, kemungkinan besar Anda juga termasuk salah satu subscribernya. :mrgreen: Ada beberapa kontroversi bahwa Mike Lantz harusnya tidak boleh ikutan JV Contest. Tapi bila si Vendor mengizinkan produknya untuk menjadi WSO Of The Day, maka Mike Lantz tentunya adalah seorang Affiliate juga.

Edwin Boiten adalah Internet Marketer dengan spesialisasi di niche Amazon dan WordPress, dia pernah menjadi affiliate di salah satu produk saya dan pernah bercerita ke saya bahwa dia biasanya menghasilkan sekitar 200 sales hanya dari 1x broadcast email (bayangkan bila harga produk yang dia promosikan adalah $5, maka dia bisa dengan mudah menghasilkan $1000 tiap harinya). :)

Martin Crumlish (icun) adalah WSO Of The Day Specialist. Setiap produk yang dia rilis di WarriorForum, 99% pasti akan menjadi WSO Of The Day, kebayangkah berapa jumlah Susbcriber List nya? :D Sementara Sam England adalah salah satu sesepuh di WarriorForum.

Semenjak masuk jadi LeaderBoard di JV Contest tersebut, Affiiate Request saya belum pernah ditolak. Sebelumnya masih ada beberapa Vendor yang menolak permintaan Affiliate saya, bahkan mempending komisi affiliate saya hingga 60 hari. Bagi saya itu adalah suatu penghinaan.. :)

Sorana Indonesia Media Informasi Online- Tapi setelah masuk jadi LeaderBoard di JV Contest tersebut, hal tersebut belum pernah terjadi lagi. Bahkan ada beberapa PM yang masuk di WarriorForum yang mengajak saya untuk mempromosikan produk mereka, sebagian diantaranya bahkan menjanjikan komisi 100%. :)

Sorana Indonesia Media Informasi Online- Saran saya, kalau Anda mengalami hal yang serupa dengan diatas, jangan tergiur dengan iming-iming mereka. Kenapa?? Alasannya sudah dijelaskan di halaman ini -> List Building Technique, ada di paragraf ke-6 ;)

Jangan asal copy paste, baca aturanya di sini Post By Lae Afif 
TV Online



Cara Membangun List (List Building Technique)

Sorana Indonesia Media Informasi Online - Cara Membangun List (List Building Technique)

Sorana Indonesia Media Informasi Online- Setelah memahami pentingnya memiliki subscriber list, sekarang saatnya membahas bagaimana cara membangun subscriber list. Ada banyak teknik atau metode list building jadi yang akan kita bahas sekarang hanya segelintir teknik saja. Sebelumnya Anda perlu mengerti juga bahwa dalam membangun list, Anda harus membagi subscriber Anda secara umum paling tidak ke dua tipe: Free List dan Buyer List.

Free List dan Buyer List

Sorana Indonesia Media Informasi Online- Free List adalah subscriber yang Anda dapatkan dari membagikan produk gratis, sementara Buyer List adalah subscriber yang Anda dapatkan dari produk2 berbayar Anda. :) Segmentasi ini harus Anda lakukan karena bila Anda ingin broadcast email promosi ke email list Anda, Anda ingin mendapatkan konversi yang bagus (tinggi). Konversi yang tinggi bisa membuat vendor dari produk yang Anda promosikan memperhatikan Anda dan mungkin akan menaikkan komisi Affiliate Anda. Cara Membangun List

Sorana Indonesia Media Informasi Online- Untuk Free List maka yang kita cari adalah kuantitas, karena mereka akan sangat jarang menanggapi email broadcast Anda. Sementara untuk buyer list kita bermain kualitas, mereka adalah komunitas yang harus Anda jaga. :) Anda harus bangun kepercayaan mereka kepada Anda sehingga mereka justru berharap-harap Anda akan mengirim email kepada mereka
.
Jangan asal copy paste, baca aturanya di sini Post By Lae Afif 
TV Online




Before the Fall, Sukhoi Could Have Down Round and round


 Sorana Indonesia Media Informasi Online- Before the Fall, Sukhoi Could Have Down Round and round


Sorana Indonesia Media Informasi Online- Director General of Civil Aviation Ministry of Transportation, Harry Bakti, affirm, at the time of the crash of Sukhoi Superjet-100, the plane lost communication at an altitude of 6,000.

The aircraft was previously located at an altitude of 10,000 and requested permission to descend to ketingggian 6000. Air Traffic Control (ATC) was given permission to do the drop height.

"It can, according to a report ATC clearance, he said he was given permission to descend to 6,000 and the position was also diradar 6000," he said at an emergency helipad, Cijeruk village, Bogor, West Java, Indonesian Saturday (12/05/2012).
Sorana Indonesia Media Informasi Online- Sukhoi Superjet-100
At the request was continued, handed a license to lose altitude. Bakti also explained the position of the plane as it was in the training area Atang Sandjaja Air Foundation.

"Because it was in the training area Atang Sanjaya air base area, in fact the plane was landing at the air base could Atang, must come down. So technically there is no operational problem, the operational and technical communication is not a problem," he said.

He explained, before permission to Atang Sanjaya air base or when heading to the air base, the plane was asking around the air base down. "And he rolled in there," said Bakti.

Bakti explain the twisting moment and then lost communication. "He's lost in there and not rise again," he said.

Finally Sukhoi Superjet 100 36 801 RA who had previously departed from Halim Perdana Kusuma Airport on Wednesday (05/09/2012) at approximately 14:00, but the contact is a contact 14:33 pm.


Jangan asal copy paste, baca aturanya di sini Post By Lae Afif 
TV Online



Tragic end Sukhoi Pilot In Indonesia, "The Cosmonaut"

 Sorana Indonesia Media Informasi Online- Tragic end Sukhoi Pilot In Indonesia, "The Cosmonaut"

 Sorana Indonesia Media Informasi Online- A corpse is found teams Army Special Forces (Kopassus) in Curug Nangka, five kilometers from the Sukhoi Super Jet crash 100, Saturday, May 12, 2012. His condition is pathetic, stuck in a tree.

There is a parachute-like object nearby. Allegedly, it was a lifeless figure Sukhoi Superjet 100 pilot, Alexandr Yablontsev.


Charlie Team member, Sergeant Abdul Haris who found the body reveals, in addition to hair and white skin color, it is alleged that the pilot's body is known of the identity of the victim in a wallet in your pocket: the name of Alexandr Yablontsev.


However, Chief of Public Information Headquarters, Police Commissioner Boy Rafli Amar, said the pilot's body is not included in the RS received 18 bags of Police. "DVI team concluded that the bodies were taken to the Police Hospital, was not the pilot's body Sukhoi SSJ 100," he said, Sunday, May 13, 2012.
Although eventually ended tragically, the plane crashed into a cliff about 20 minutes after takeoff, the President of United Aircraft Corporation, Mikhail Pogosyan said, Aleksandr Yablontsev is one of the best pilots in Russia.


"I have known and know many pilots Superjet 100. As Mr. Aleksandr pilot one of the best," said Mikhail, in Jakarta, Friday, May 11, 2012.


Mikhail then relates that Alexander be the Sukhoi pilot was from the beginning to get a certificate from the Russian Certification Authority. The pilot has flown 221 types of aircraft and pocketed more than 14 thousand hours of flying. A total of 1300 flight hours with Sukhoi Superjet obtained Yablonstsev-100.
Encyclopedia Astronautica record the name of Aleksandr Nikolaevich Yablontsev as a cosmonaut, in the position of the pilot test of the year 1989-1996.


Men born in Warsaw, 3 April 1955 was graduated from Military Pilot School, the Higher Military Pilot School, Armavi 1976. Then graduated from the Air Force Test Pilot School of the Soviet Union in Akhtubinsk 1985, and from the Moscow Aviation Institute in 1989.
Alexandr Yablontsev also be a cosmonaut training in March 1989 until April 1991, is projected as a pilot the space shuttle Buran.


Space Shuttle Buran was the Soviet Union's analog. Buran had just completed one unmanned space flight in 1988, before the program was canceled in 1993.


Unfortunately, he did not get to outer space. After that he returned to flight school Akhtubinsk.
In 1997, Yablontsev stop of military duty. In 1998 to 1999, he worked as a pilot in the airline, Transaero Airlines, then in Transevropskiye Avialiniy Airline.
Various allegations


Although it was not clear what happened in the moments before the plane crashed into Mount determine Salak, alleged co-pilot Aleksandr Aleksandr Yablontsev and knew the terrain when Kochetkov not escape the dark cloud. There is another conjecture, then he is being maneuvered.


Pilot conversations with air traffic center (ATC) Soekarno-Hatta Airport, when asked for permission falls from a height of 10,000 feet to 6,000 feet, up to now is still a big question.


Already, the Russian government even said that Sukhoi Superjet-100 aircraft that crashed on the slopes of Mount Salak, West Java, in good condition. According to them, the accident was most likely caused by human factors.


"Experts say all equipment is functioning properly," said Deputy Prime Minister of Russia, Dmitry Rogozin, told RIA Novosti how, Thursday, May 10, 2012. "In other words, is caused by human error."


However, the President of the United Aircraft Corporation, Mikhail Pogosyan another opinion. "It's too early to declare the accident was caused by pilot error," he said as reported Ria Novosti in Indonesia.
 Jangan asal copy paste, baca aturanya di sini Post By Lae Afif 
TV Online






Perintah INSERT di MySQL

Sorana Indonesia Media Informasi online- Perintah INSERT di MySQL Using INSERT


SoranaIndonesia Media Informasionline- The INSERT SQL statement is used to insert rows into a table. We'll begin by looking at an example. Again, you can type these statements directly into the MySQL monitor or into a file, or you can download this file from the book's Web site.
Some sample insert statements are shown in Listing 5.1.
Listing 5.1 employee_data.sql


use employee;

delete from department;
insert into department values
(42, 'Finance'),
(128, 'Research and Development'),
(NULL, 'Human Resources'),
(NULL, 'Marketing');

delete from employee;
insert into employee values
(7513,'Nora Edwards','Programmer',128),
(9842, 'Ben Smith', 'DBA', 42),
(6651, 'Ajay Patel', 'Programmer', 128),
(9006, 'Candy Burnett', 'Systems Administrator', 128);

delete from employeeSkills;
insert into employeeSkills values
(7513, 'C'),
(7513, 'Perl'),
(7513, 'Java'),
(9842, 'DB2'),
(6651, 'VB'),
(6651, 'Java'),
(9006, 'NT'),
(9006, 'Linux');

delete from client;
insert into client values
(NULL, 'Telco Inc', '1 Collins St Melbourne', 'Fred Smith', '95551234'),
(NULL, 'The Bank', '100 Bourke St Melbourne', 'Jan Tristan', '95559876');

delete from assignment;
insert into assignment values
(1, 7513, '2003-01-20', 8.5);

You'll see that before we insert any data into each table, we are running a DELETE statement?again, this isn't necessary, but it will clean out any test data that you may have inserted so far. We'll come back to the DELETE statement in the next section.

Also note that we have inserted the sample data to match the examples in Chapter 3, "Database Design Crash Course." We have added some additional rows as well.
All of these INSERT statements are pretty similar. Let's look at the first one to see how it works:



insert into department values
(42, 'Finance'),
(128, 'Research and Development'),
(NULL, 'Human Resources'),
(NULL, 'Marketing');

We specify the table that we want to insert data into on the first line?in this case, department. Here, we are inserting four rows into the table. You may recall that the department table has two columns, departmentID and name. (You can check this for yourself by running a describe department command.)
In the first two rows, we have specified the departmentID that we want to use. Let's look back at the definition of departmentID. You may recall that in the last chapter, we declared it as



departmentID int not null auto_increment primary key

Because this is an auto_increment column, we can specify the value or let MySQL calculate it for us. (Usually, in this case, we would let MySQL allocate a number, but there may be cases like this one in which we have an existing number we want to use.)

In the rows for Human Resources and Marketing, you will see that we have left the departmentID as NULL. This will allow the auto_increment to do its magic and allocate a value. Let's see what we get from this INSERT statement.

If you look through the various INSERT statements, you will see that when we insert data into a string or date type, we enclose it in single quotes, for example, 'Research and Development'. When it is a numerical type, you should not use quotes.
If we are enclosing data in quotes, what do we do when the data contains quotes? The answer is that we need to escape the quotes. In simple terms, we need to put a backslash () in front of the single quote, for example, 'O'Leary'.

Obviously, this brings up the question, "What do we do if we want a backslash to be just a backslash, without any special meaning?" In this case, we need to escape the backslash in the same way?replace the backslash with two backslashes (\).

We retrieve data from the database using the SELECT statement. We will cover SELECT fairly exhaustively in the next few chapters. For the moment, we only need to know that typing

select * from tablename;
will return all the data currently stored in a table.
If you type

select * from department;

you should get output similar to the following:

+---------------+----------------------+
| departmentID | name |
+---------------+----------------------+
| 42 | Finance |
| 128 | Research and Develop |
| 129 | Human Resources |
| 130 | Marketing |
+---------------+----------------------+
4 rows in set (0.01 sec)

You should be able to see that the effect of auto_increment is a value which is one greater than the highest current value in the column.
The general form of the INSERT statement from the MySQL manual is as follows:

INSERT [LOW_PRIORITY | DELAYED] [IGNORE]
[INTO] tbl_name [(col_name,...)]
VALUES ((expression | DEFAULT),...),(...),...
[ ON DUPLICATE KEY UPDATE col_name=expression, ... ]

or INSERT [LOW_PRIORITY | DELAYED] [IGNORE]
[INTO] tbl_name [(col_name,...)]
SELECT ...

or INSERT [LOW_PRIORITY | DELAYED] [IGNORE]
[INTO] tbl_name
SET col_name=(expression | DEFAULT), ...
[ ON DUPLICATE KEY UPDATE col_name=expression, ... ]

The examples we have looked at all follow the first form of the expression. You will note that the keyword INTO is optional. We could leave it out and begin our query with insert employee values, but we find it a little harder to read.

With this first form, we need to list values for each column value in each row in the same order as the columns are in the table. For example, we had to specify the departmentID first, followed by the name, because that's the way the department table is structured. As demonstrated, this form allows us to insert multiple rows in a table with a single INSERT statement.

The second form ends in a SELECT statement. Rather than inserting values manually, this allows us to retrieve data from another table or tables in the database and store it in this table.
The third form allows us to specify which columns data should be inserted into. An example of using INSERT in this way is



insert into department
set name='Asset Management';

This form only allows you to insert a single row at a time, but you don't need to specify values for all the columns. In this case, we are setting a value for only the name. All the unspecified values will either take their default value, if one is specified, or be NULL. In this case, departmentID will be set to NULL, which causes the auto_increment to work its magic and generate a new departmentID for us. (You can check this by typing select * from department again.)

There are a couple of optional clauses in the INSERT statement. Let's briefly go through what these do:

We can specify that an INSERT should be LOW PRIORITY or DELAYED. Both of these clauses will cause the insertion to be delayed until no client is trying to read from the table. The difference between them is that LOW PRIORITY will block the inserting client and DELAYED will not.

What this means is that if you run a LOW PRIORITY insert, you may wait for some time before you can continue running queries in your client. With DELAYED, you will be told OK and can continue running queries, but you need to remember that the insert will not be performed until the table is not in use.

Specifying IGNORE is chiefly useful when you are inserting multiple rows. Normally, if one of the rows you are trying to insert clashes with an existing row's PRIMARY KEY or UNIQUE value, an error will occur and the insert will be aborted. If you specify IGNORE, the error will be ignored and the insert will continue and will attempt to insert the next row.

We can specify that a column should contain its default value by specifying DEFAULT as the value for that column.The ON DUPLICATE KEY UPDATE clause allows us to deal elegantly with clashing primary key or unique values. We follow this clause with an UPDATE statement that we can use to change the primary key or unique value in the row already in the table so that it no longer clashes with the new row.The following short example demonstrates a common style of use for the ON DUPLICATE KEY UPDATE clause:


create table warning
(
employeeID int primary key not null references employee(employeeID),
count int default 1
) type =InnoDB;

insert into warning (employeeID)
values (6651)
on duplicate key update count=count+1;

This clause is very useful for situations in which you want to not only record unique events, but also take some action, such as incrementing a counter when non-unique events occur.

Any sort of logging would be a good example, but in keeping with the employee database we have been using, we will record employees who have been given a warning in the table warning.To record somebody's warning, we run this INSERT statement.

Because count has a default value of 1 and we are not specifying a value in the INSERT, it will be 1 the first time the insert is done for each employeeID. Subsequent inserts with the same employeeID will trigger the ON DUPLICATE KEY UPDATE clause and will increment the counter.


Jangan asal copy paste, baca aturanya di sini Post By Lae Afif 
TV Online





Your Visit

Followers

Blog Archive

Popular Posts