Articles Comments

Oracle DBA & All IT » Entries tagged with "where"

มหากาพย์ export/import ตอนที่ 2 export by SQL

มหากาพย์ export/import ตอนที่ 2 export by SQL เนื่องจากมีหลายคนถามมาว่า export แบบไม่เอาทั้ง table ได้มั้ยยย ก็ขอบอกเลยว่าได้จ้า มาดูกันว่าทำไง เรื่องของการ export data แบบใส่เงื่อนไขในการ export เลือกเฉพาะข้อมูลที่ต้องการออกมา คล้ายๆกับการ Select * from Where …… ตัวอย่าง Scipt ที่ใช้ในการ export สำคัญที่ parameter query exp file=exp_data.dmp log=exp_data.log query="where employee_name= 'SCOTT' " full=N tables=hr.employees userid=system/password@db1 Tip: ในส่วน query นั้น column ที่เรานำมา where จะต้องมีอยู่ใน table ที่เราเลือกที่จะ export ออกมา สามารถมีมากว่า 1 table ได้ แต่ขอให้มี column name เหมือนกันเท่านั้นเอง .. Preview : 3722 … Read entire article »

Filed under: Database, DBA, DBA, Oracle, Oracle Tips